0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00

edit-vacation.php:

- fix another unqouted usage of boolean values


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@711 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
Christian Boltz 2009-08-21 12:02:55 +00:00
parent c4002d5e0b
commit b9be63fc81

View File

@ -161,7 +161,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
// insert a duplicate // insert a duplicate
$result = db_query("SELECT * FROM $table_vacation WHERE email = '$fUsername'"); $result = db_query("SELECT * FROM $table_vacation WHERE email = '$fUsername'");
if($result['rows'] == 1) { if($result['rows'] == 1) {
$result = db_query("UPDATE $table_vacation SET active = $Active, subject = '$fSubject', body = '$fBody', created = NOW() WHERE email = '$fUsername'"); $result = db_query("UPDATE $table_vacation SET active = '$Active', subject = '$fSubject', body = '$fBody', created = NOW() WHERE email = '$fUsername'");
} }
else { else {
$result = db_query ("INSERT INTO $table_vacation (email,subject,body,domain,created,active) VALUES ('$fUsername','$fSubject','$fBody','$fDomain',NOW(),'$Active')"); $result = db_query ("INSERT INTO $table_vacation (email,subject,body,domain,created,active) VALUES ('$fUsername','$fSubject','$fBody','$fDomain',NOW(),'$Active')");