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
postfixadmin-2.3
Christian Boltz 17 years ago
parent a633bd371c
commit af3d7fdabc

@ -27,7 +27,8 @@ require_once('../common.php');
authentication_require_role('user'); authentication_require_role('user');
$USERID_USERNAME = authentication_get_username(); $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) if ($result['rows'] == 1)
{ {
$row = db_array($result['result']); $row = db_array($result['result']);

Loading…
Cancel
Save