From 051876ac1802ba5a05441e9d7f4058ee60f6d4ee Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Fri, 17 Aug 2007 15:12:39 +0000 Subject: [PATCH] fix uninitialiseed variable for v_active git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@23 a1433add-5e2c-0410-b055-b7f2511e0802 --- admin/list-virtual.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/list-virtual.php b/admin/list-virtual.php index ec7bc11b..f0c105e7 100644 --- a/admin/list-virtual.php +++ b/admin/list-virtual.php @@ -103,7 +103,10 @@ if ($result['rows'] > 0) $row['created']=gmstrftime('%c %Z',$row['uts_created']); $row['modified']=gmstrftime('%c %Z',$row['uts_modified']); $row['active']=('t'==$row['active']) ? 1 : 0; - $row['v_active']=('t'==$row['v_active']) ? 1 : 0; + $row['v_active'] = 1; // default to 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; + } } $tMailbox[] = $row; }