From 5fcaec01d8d2b22eb6ebc8f320b8dd45db0d409a Mon Sep 17 00:00:00 2001
From: pedro_morgan <pedro_morgan@ispconfig3>
Date: Fri, 17 Aug 2007 20:32:39 -0400
Subject: [PATCH] Double quotes

---
 interface/web/mail/mail_get_edit.php |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/interface/web/mail/mail_get_edit.php b/interface/web/mail/mail_get_edit.php
index 1d07266..1da6735 100644
--- a/interface/web/mail/mail_get_edit.php
+++ b/interface/web/mail/mail_get_edit.php
@@ -53,6 +53,16 @@
 
 class page_action extends tform_actions {
 	
+	function onSubmit() {
+		global $app, $conf;
+		
+		// Set the server ID according to the selected destination
+		$tmp = $app->db->queryOneRecord("SELECT server_id FROM mail_user WHERE email = '".addslashes($this->dataRecord["destination"])."'");
+		$this->dataRecord["server_id"] = $tmp["server_id"];
+		unset($tmp);
+		
+		parent::onSubmit();
+	}
 	
 }
 

--
Gitblit v1.9.1