0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

edit-vacation.php:

- cleanup vacation_notification table when disabling vacation
  https://sourceforge.net/forum/message.php?msg_id=5131390


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@432 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
Christian Boltz 2008-08-01 20:47:07 +00:00
parent 73b26190ef
commit 5a572e7265

View File

@ -118,6 +118,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
$db_false = db_get_boolean(false);
// retain vacation message if possible - i.e disable vacation away-ness.
$result = db_query ("UPDATE $table_vacation SET active = $db_false WHERE email='$fUsername'");
$result = db_query("DELETE FROM $table_vacation_notification WHERE on_vacation='$fUsername'");
$result = db_query ("SELECT * FROM $table_alias WHERE address='$fUsername'");
if ($result['rows'] == 1)