Bernd Wurst commited on 2014-02-07 05:16:19
Zeige 1 geänderte Dateien mit 1 Einfügungen und 1 Löschungen.
... | ... |
@@ -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; |
227 | 227 |