Browse code

Warnung bei manuellen Accounts auf vmail-Domain optimiert

Bernd Wurst authored on07/02/2014 05:16:19
Showing1 changed files
... ...
@@ -220,7 +220,7 @@ function check_valid($acc)
220 220
 function imap_on_vmail_domain()
221 221
 {
222 222
   $uid = (int) $_SESSION['userinfo']['uid'];
223
-  $result = db_query("SELECT m.id FROM mail.mailaccounts AS m INNER JOIN mail.virtual_mail_domains AS vd USING (domain) WHERE m.uid=?", array($uid));
223
+  $result = db_query("SELECT m.id FROM mail.mailaccounts AS m INNER JOIN mail.virtual_mail_domains AS vd USING (domain) WHERE vd.hostname IS NULL AND m.uid=?", array($uid));
224 224
   if ($result->rowCount() > 0)
225 225
     return true;
226 226
   return false;