diff --git a/plugins/configuration/tasks/class_tasksMail.inc b/plugins/configuration/tasks/class_tasksMail.inc index 872cca03cb97c4732a48ca1822d783a65953f20d..cb87811186390bc913f39653713f68e4aa36a61c 100644 --- a/plugins/configuration/tasks/class_tasksMail.inc +++ b/plugins/configuration/tasks/class_tasksMail.inc @@ -293,7 +293,8 @@ class tasksMail extends simplePlugin $tabObject = objects::create('TasksGranular'); // Create a unique ID based on timestamp (Allowing duplicate subtasks for same members in case of repeat). - $timestamp = microtime(true); // Get the current timestamp with microseconds + $timestamp = microtime(TRUE); // Get the current timestamp with microseconds + $timestamp = (string)$timestamp; // Convert the float to a string, str_replace expect array or string. $uniqueID = str_replace(".", "_", $timestamp); // Remove . with _ for correct CN // Array matches come from preg_match function above with rmDn