lastchange immer setzen
bernd

bernd commited on 2008-04-12 11:20:44
Zeige 1 geänderte Dateien mit 4 Einfügungen und 3 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1029 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -314,16 +314,17 @@ function change_domain($id, $type)
314 314
   if ($type == 'none') {
315 315
     db_query("DELETE FROM mail.virtual_mail_domains WHERE domain={$id} AND hostname IS NULL LIMIT 1;");
316 316
     db_query("DELETE FROM mail.custom_mappings WHERE domain={$id} AND subdomain IS NULL LIMIT 1;");
317
-    db_query("UPDATE kundendaten.domains SET mail='none' WHERE id={$id} LIMIT 1;");
317
+    db_query("UPDATE kundendaten.domains SET mail='none', lastchange=NOW() WHERE id={$id} LIMIT 1;");
318 318
   }
319 319
   elseif ($type == 'virtual') {
320 320
     db_query("DELETE FROM mail.custom_mappings WHERE domain={$id} AND subdomain IS NULL LIMIT 1;");
321
-    db_query("UPDATE kundendaten.domains SET mail='auto' WHERE id={$id} LIMIT 1;");    db_query("INSERT INTO mail.virtual_mail_domains (domain) VALUES ({$id});");
321
+    db_query("UPDATE kundendaten.domains SET mail='auto', lastchange=NOW() WHERE id={$id} LIMIT 1;");
322
+    db_query("INSERT INTO mail.virtual_mail_domains (domain) VALUES ({$id});");
322 323
   }
323 324
   elseif ($type == 'auto') {
324 325
     db_query("DELETE FROM mail.virtual_mail_domains WHERE domain={$id} AND hostname IS NULL LIMIT 1;");
325 326
     db_query("DELETE FROM mail.custom_mappings WHERE domain={$id} AND subdomain IS NULL LIMIT 1;");
326
-    db_query("UPDATE kundendaten.domains SET mail='auto' WHERE id={$id} LIMIT 1;");
327
+    db_query("UPDATE kundendaten.domains SET mail='auto', lastchange=NOW() WHERE id={$id} LIMIT 1;");
327 328
   }
328 329
 }
329 330
 
330 331