Bernd Wurst commited on 2014-02-02 17:03:49
Zeige 1 geänderte Dateien mit 1 Einfügungen und 1 Löschungen.
... | ... |
@@ -40,7 +40,7 @@ if (! function_exists("user_has_dotcourier_domain")) |
40 | 40 |
return false; |
41 | 41 |
} |
42 | 42 |
$uid = (int) $_SESSION['userinfo']['uid']; |
43 |
- $result = db_query("select 1 from mail.custom_mappings as c left join mail.v_domains as d on (d.id=c.domain) where d.user=:uid or c.uid=:uid}UNION ". |
|
43 |
+ $result = db_query("select 1 from mail.custom_mappings as c left join mail.v_domains as d on (d.id=c.domain) where d.user=:uid or c.uid=:uid UNION ". |
|
44 | 44 |
"SELECT 1 FROM mail.v_domains AS d WHERE d.user=:uid AND d.id != ALL(SELECT domain FROM mail.virtual_mail_domains)", array(":uid" => $uid)); |
45 | 45 |
$ret = ($result->rowCount() > 0); |
46 | 46 |
if ($ret) |
47 | 47 |