From ac44dc861db486269fc79f2574a3e726715545b4 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Tue, 26 Feb 2008 20:27:15 +0000 Subject: [PATCH] edit-vacation.php: - fix: text changes when setting up vacation message were ignored if the user had used vacation before (UPDATE statement did only change active state, not subject and body) git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@302 a1433add-5e2c-0410-b055-b7f2511e0802 --- edit-vacation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit-vacation.php b/edit-vacation.php index 087952a2..d5613551 100644 --- a/edit-vacation.php +++ b/edit-vacation.php @@ -160,7 +160,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") // insert a duplicate $result = db_query("SELECT * FROM $table_vacation WHERE email = '$fUsername'"); if($result['rows'] == 1) { - $result = db_query("UPDATE $table_vacation SET active = $Active, created = NOW() WHERE email = '$fUsername'"); + $result = db_query("UPDATE $table_vacation SET active = $Active, subject = '$fSubject', body = '$fBody', created = NOW() WHERE email = '$fUsername'"); } else { $result = db_query ("INSERT INTO $table_vacation (email,subject,body,domain,created,active) VALUES ('$fUsername','$fSubject','$fBody','$fDomain',NOW(),$Active)");