From 655a288f8bd6e08acd8fea6709d8ecb7ece56b74 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 5 Sep 2012 19:52:17 +0200 Subject: [PATCH] Fix: Removed last separator line --- htdocs/admin/dict.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 4929fe7a4ff..3ea8af0ae97 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -1022,12 +1022,20 @@ else print ''.$langs->trans("Table").''; print ''; + $showemptyline=''; foreach ($taborder as $i) { if (isset($tabname[$i]) && empty($tabcond[$i])) continue; if ($i) { + if ($showemptyline) + { + $var=!$var; + print '   '; + $showemptyline=0; + } + $var=!$var; $value=$tabname[$i]; print ''; @@ -1053,8 +1061,7 @@ else { if (! $lastlineisempty) { - $var=!$var; - print '   '; + $showemptyline=1; $lastlineisempty=true; } }