Logikfehler beim Anlegen von Weiterleitungen beseitigt
bernd

bernd commited on 2012-02-18 11:03:23
Zeige 1 geänderte Dateien mit 2 Einfügungen und 1 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@2200 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -250,6 +250,7 @@ function save_vmail_account($account)
250 250
   {
251 251
     $query = "INSERT INTO mail.vmail_accounts (local, domain, spamfilter, spamexpire, password, quota, quota_threshold) VALUES ";
252 252
     $query .= "('{$account['local']}', {$account['domain']}, {$spam}, {$account['spamexpire']}, {$password}, {$account['quota']}, {$account['quota_threshold']});";
253
+    db_query($query); 
253 254
     $id = mysql_insert_id();
254 255
   }
255 256
   else
... ...
@@ -261,8 +262,8 @@ function save_vmail_account($account)
261 262
     $query = "UPDATE mail.vmail_accounts SET local='{$account['local']}', domain={$account['domain']}{$password}, ";
262 263
     $query .= "spamfilter={$spam}, spamexpire={$account['spamexpire']}, quota={$account['quota']}, quota_threshold={$account['quota_threshold']} ";
263 264
     $query .= "WHERE id={$id} LIMIT 1;";
264
-  }
265 265
     db_query($query); 
266
+  }
266 267
   if (! $newaccount)
267 268
     db_query("DELETE FROM mail.vmail_forward WHERE account={$id}");
268 269
 
269 270