From 31f442b14523ec0d2b8046004b0c843047bd5160 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 13 Nov 2010 17:06:34 +0000 Subject: [PATCH] Fix: Background of line --- htdocs/categories/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php index 3d32599d1a7..529518183d9 100644 --- a/htdocs/categories/index.php +++ b/htdocs/categories/index.php @@ -207,8 +207,6 @@ $oldvallevel=0; $var=true; foreach($fulltree as $key => $val) { - $var=!$var; - //$fullpathparent=preg_replace('/_[^_]+$/i','',$val['fullpath']); // Define showline @@ -225,7 +223,9 @@ foreach($fulltree as $key => $val) if ($showline) { - if (in_array($val['id'],$expandedsectionarray)) $option='indexexpanded'; + $var=!$var; + + if (in_array($val['id'],$expandedsectionarray)) $option='indexexpanded'; else $option='indexnotexpanded'; //print $option;