X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmysql-manager.php;h=a9733b4ec1489db3e08ea1f4dbba5cdd434320e9;hb=188495baa4eae4327a063f99989ea503598b2174;hp=8a8e3107097c2312264d057065bb92556227670c;hpb=7c6a5b9e1e07dd360286130fe7e39000bfc68d4a;p=mailer.git diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 8a8e310709..a9733b4ec1 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -1691,12 +1691,12 @@ function reduceRecipientReceivedMails ($column, $id, $count) { } // Creates a new task -function createNewTask ($subject, $notes, $taskType, $userid = NULL, $adminId = '0', $strip = true) { +function createNewTask ($subject, $notes, $taskType, $userid = NULL, $adminId = NULL, $strip = true) { // Insert the task data into the database SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_task_system` (`assigned_admin`,`userid`,`status`,`task_type`,`subject`,`text`,`task_created`) VALUES (%s,%s,'NEW','%s','%s','%s', UNIX_TIMESTAMP())", array( - $adminId, - $userid, + makeZeroToNull($adminId), + makeZeroToNull($userid), $taskType, $subject, $notes