aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-01-30 11:33:25 -0500
committerBrian Evans <grknight@gentoo.org>2018-01-30 11:33:25 -0500
commit7502757bdae610d26b53d14c01aec68b17e9fbc3 (patch)
treefeb804485e92e1d5db6bc9bc93fd0e5b72ae402e /php/lib/list.php
parentUpdate footer copyright (diff)
downloadbouncer-7502757bdae610d26b53d14c01aec68b17e9fbc3.tar.gz
bouncer-7502757bdae610d26b53d14c01aec68b17e9fbc3.tar.bz2
bouncer-7502757bdae610d26b53d14c01aec68b17e9fbc3.zip
Silence Notices with defaults and reference removals
Diffstat (limited to 'php/lib/list.php')
-rw-r--r--php/lib/list.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/php/lib/list.php b/php/lib/list.php
index 9f480bc..8424ae3 100644
--- a/php/lib/list.php
+++ b/php/lib/list.php
@@ -109,6 +109,7 @@
*/
function show_list($list,$headers,$type='checkbox',$actions=null,$form_id=null,$sortable=true,$selected=null)
{
+ $count = 0;
if ( is_array($list) && count($list)>0 && is_array($headers) )
{
if ( $type!='simple' && !empty($_GET['sort']) && !empty($_GET['order']) )
@@ -215,7 +216,7 @@ function show_headers($headers,$type,$sortable=true)
if ($type!='simple'&&$count==0)
{
echo "\n".'<th> </th>';
- next;
+ continue;
}
elseif($sortable)
{