From af3d7fdabca0ed75083da4e8392b1ace6e415a1f Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 20 Jan 2008 20:28:23 +0000 Subject: [PATCH] users/main.php - only show vacation as active if active=true https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1875901&group_id=191583 [That's what I meant with "side effects" when discussing the DELETE -> UPDATE ... set active=false change...] git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@298 a1433add-5e2c-0410-b055-b7f2511e0802 --- users/main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/users/main.php b/users/main.php index 38ed5cc9..ea575365 100644 --- a/users/main.php +++ b/users/main.php @@ -27,7 +27,8 @@ require_once('../common.php'); authentication_require_role('user'); $USERID_USERNAME = authentication_get_username(); -$result = db_query("SELECT * FROM $table_vacation WHERE email='$USERID_USERNAME'"); +$db_active = db_get_boolean(True); +$result = db_query("SELECT * FROM $table_vacation WHERE email='$USERID_USERNAME' AND active='$db_active'"); if ($result['rows'] == 1) { $row = db_array($result['result']);