From c3fd2b1a66fa79fde4e73b44228e3df734ad62bc Mon Sep 17 00:00:00 2001
From: A. Täffner <darkalex@firesplash.de>
Date: Wed, 20 Jan 2016 07:48:04 -0500
Subject: [PATCH] cleanup

---
 interface/lib/classes/remote.d/mail.inc.php |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/interface/lib/classes/remote.d/mail.inc.php b/interface/lib/classes/remote.d/mail.inc.php
index 21ccb5b..9229899 100644
--- a/interface/lib/classes/remote.d/mail.inc.php
+++ b/interface/lib/classes/remote.d/mail.inc.php
@@ -357,7 +357,7 @@
 			return false;
 		}
 	
-		if (/*$action_type != 'backup_download_mail' and*/ $action_type != 'backup_restore_mail') {
+		if (/*$action_type != 'backup_download_mail' and*/ $action_type != 'backup_restore_mail' and $action_type != 'backup_delete_mail') {
 			$this->server->fault('invalid_action', "Invalid action_type $action_type");
 			return false;
 		}
@@ -370,7 +370,7 @@
 		}
 	
 		//* Save the record
-		if ($app->db->query("INSERT INTO `sys_remoteaction` SET `server_id` = ?, `tstamp` = ?, `action_type` = ?, `action_param` = ?, `action_state` = ?"), $server_id, $tstamp, $action_type, $primary_id, $action_state) {
+		if ($app->db->query("INSERT INTO `sys_remoteaction` SET `server_id` = ?, `tstamp` = ?, `action_type` = ?, `action_param` = ?, `action_state` = ?", $server_id, $tstamp, $action_type, $primary_id, $action_state)) {
 			return true;
 		} else {
 			return false;
@@ -1061,7 +1061,6 @@
 			return false;
 		}
 		if (!empty($domain)) {
-			$domain       = $app->db->quote($domain);
 			$sql            = "SELECT * FROM mail_domain WHERE domain = ?";
 			$result         = $app->db->queryAllRecords($sql, $domain);
 			return          $result;

--
Gitblit v1.9.1