SF.net SVN: postfixadmin: [302] trunk/edit-vacation.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <chr...@us...> - 2008-02-26 20:27:11
|
Revision: 302
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=302&view=rev
Author: christian_boltz
Date: 2008-02-26 12:27:15 -0800 (Tue, 26 Feb 2008)
Log Message:
-----------
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)
Modified Paths:
--------------
trunk/edit-vacation.php
Modified: trunk/edit-vacation.php
===================================================================
--- trunk/edit-vacation.php 2008-02-26 19:44:27 UTC (rev 301)
+++ trunk/edit-vacation.php 2008-02-26 20:27:15 UTC (rev 302)
@@ -160,7 +160,7 @@
// 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)");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|