diff --git a/customer_email.php b/customer_email.php index 96305e5f..ea16eb81 100644 --- a/customer_email.php +++ b/customer_email.php @@ -379,7 +379,7 @@ if ($page == 'overview') { standard_error('youhavealreadyacatchallforthisdomain'); exit; } else { - $stmt = Database::pexecute("UPDATE `" . TABLE_MAIL_VIRTUAL . "` + $stmt = Database::prepare("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `email` = :email , `iscatchall` = '1' WHERE `customerid`= :cid AND `id`= :id" diff --git a/lib/classes/ticket/class.ticket.php b/lib/classes/ticket/class.ticket.php index 1ff0916e..f61258fe 100644 --- a/lib/classes/ticket/class.ticket.php +++ b/lib/classes/ticket/class.ticket.php @@ -398,11 +398,11 @@ class ticket { } $upd_stmt = Database::prepare(" - UPDATE `' . TABLE_PANEL_TICKET_CATS . '` SET + UPDATE `" . TABLE_PANEL_TICKET_CATS . "` SET `name` = :name, `logicalorder` = :lo - WHERE `id` = :id" - ); + WHERE `id` = :id + "); Database::pexecute($upd_stmt, array('name' => $_category, 'lo' => $_order, 'id' => $_id)); return true; } diff --git a/scripts/jobs/cron_tasks.inc.dns.10.bind.php b/scripts/jobs/cron_tasks.inc.dns.10.bind.php index 6f961214..1bb177cb 100644 --- a/scripts/jobs/cron_tasks.inc.dns.10.bind.php +++ b/scripts/jobs/cron_tasks.inc.dns.10.bind.php @@ -301,7 +301,7 @@ class bind { // Check whether to add a www.-prefix if ($domain['wwwserveralias'] == '1') { - $records[] = str_replace('.' . $domain['domain'], '', $subdomain['domain']); + $records[] = 'www.'.str_replace('.' . $domain['domain'], '', $subdomain['domain']); } }