SF.net SVN: postfixadmin: [298] trunk/users/main.php
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2008-01-20 20:28:25
|
Revision: 298 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=298&view=rev Author: christian_boltz Date: 2008-01-20 12:28:23 -0800 (Sun, 20 Jan 2008) Log Message: ----------- 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...] Modified Paths: -------------- trunk/users/main.php Modified: trunk/users/main.php =================================================================== --- trunk/users/main.php 2008-01-19 16:48:15 UTC (rev 297) +++ trunk/users/main.php 2008-01-20 20:28:23 UTC (rev 298) @@ -27,7 +27,8 @@ 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']); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |