Browse code

Logikfehler beim Anlegen von Weiterleitungen beseitigt

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@2200 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on18/02/2012 11:03:23
Showing1 changed files
... ...
@@ -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;";
265
+    db_query($query); 
264 266
   }
265
-  db_query($query); 
266 267
   if (! $newaccount)
267 268
     db_query("DELETE FROM mail.vmail_forward WHERE account={$id}");
268 269