SF.net SVN: postfixadmin: [191] trunk/list-virtual.php
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2007-11-04 19:34:40
|
Revision: 191 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=191&view=rev Author: GingerDog Date: 2007-11-04 11:34:45 -0800 (Sun, 04 Nov 2007) Log Message: ----------- list-virtual.php: fix logic for display of vacation stuff Modified Paths: -------------- trunk/list-virtual.php Modified: trunk/list-virtual.php =================================================================== --- trunk/list-virtual.php 2007-11-04 19:22:58 UTC (rev 190) +++ trunk/list-virtual.php 2007-11-04 19:34:45 UTC (rev 191) @@ -110,13 +110,14 @@ { if ('pgsql'==$CONF['database_type']) { + //var_dump($row); $row['created']=gmstrftime('%c %Z',strtotime($row['created'])); $row['modified']=gmstrftime('%c %Z',strtotime($row['modified'])); $row['active']=('t'==$row['active']) ? 1 : 0; - $row['v_active'] = 1; // default to off... TODO: 1 is NOT off - if(isset($row['v_active'])) { /* key may not be present in results due to query from above */ - $row['v_active']=('t'==$row['v_active']) ? 1 : 0; + if($row['v_active'] == NULL) { + $row['v_active'] = 'f'; } + $row['v_active']=('t'==$row['v_active']) ? 1 : 0; } $tMailbox[] = $row; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |