edit-vacation.php: fix postgresql issue

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@707 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 15 years ago
parent ff3de29241
commit 06b170c70a

@ -164,7 +164,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
$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)");
$result = db_query ("INSERT INTO $table_vacation (email,subject,body,domain,created,active) VALUES ('$fUsername','$fSubject','$fBody','$fDomain',NOW(),'$Active')");
}
if ($result['rows'] != 1)

Loading…
Cancel
Save