bernd commited on 2009-09-10 06:56:05
Zeige 1 geänderte Dateien mit 7 Einfügungen und 0 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1464 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -83,6 +83,12 @@ function create_mailaccount($arr) |
83 | 83 |
$values['uid'] = (int) $_SESSION['userinfo']['uid']; |
84 | 84 |
|
85 | 85 |
list($local, $domain) = explode('@', $arr['account'], 2); |
86 |
+ if ($domain == config('masterdomain')) |
|
87 |
+ { |
|
88 |
+ $values['domain'] = "NULL"; |
|
89 |
+ } |
|
90 |
+ else |
|
91 |
+ { |
|
86 | 92 |
$domain = new Domain( (string) $domain); |
87 | 93 |
if ($domain->id == NULL) |
88 | 94 |
$values['domain'] = "NULL"; |
... | ... |
@@ -90,6 +96,7 @@ function create_mailaccount($arr) |
90 | 96 |
$domain->ensure_userdomain(); |
91 | 97 |
$values['domain'] = $domain->id; |
92 | 98 |
} |
99 |
+ } |
|
93 | 100 |
|
94 | 101 |
$values['local'] = "'".mysql_real_escape_string($local)."'"; |
95 | 102 |
|
96 | 103 |