Skip to content
Snippets Groups Projects
Commit 2e59810b authored by Prasad's avatar Prasad
Browse files

Fixed float + string concat mistmatch

parent 6588fc8d
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -163,7 +163,7 @@ class Webforms_Model {
function generatePublicId($name) {
global $adb, $log;
$uid = md5(microtime(true) + $name);
$uid = md5(sprintf("%f%s", microtime(true), $name));
return $uid;
}
......
......@@ -239,7 +239,7 @@ class Settings_Webforms_Record_Model extends Settings_Vtiger_Record_Model {
* @return <String> id
*/
public function generatePublicId() {
return md5(microtime(true) + $this->getName());
return md5(sprintf("%f%s", microtime(true), $this->getName()));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment