Fixes for creating of new tasks (double escape breakes string) and mail debug code
[mailer.git] / inc / mysql-manager.php
index c9fad71c38bd45b68868552f4ecc139b956bb10c..1e1069a6bd8dad8ae35a46d75e500fc7ebe017e7 100644 (file)
@@ -2121,7 +2121,13 @@ function reduceRecipientReceivedMails ($column, $id, $count) {
 function createNewTask ($subject, $notes, $taskType, $userid = '0', $adminId = '0', $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, $taskType, $subject, escapeQuotes($notes)), __FUNCTION__, __LINE__, true, $strip);
+               array(
+                       $adminId,
+                       $userid,
+                       $taskType,
+                       $subject,
+                       $notes
+               ), __FUNCTION__, __LINE__, true, $strip);
 }
 
 // Updates last module / online time