aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
authorlaurent.duretz <laurent.duretz@piwigo.org>2010-04-20 07:05:58 +0000
committerlaurent.duretz <laurent.duretz@piwigo.org>2010-04-20 07:05:58 +0000
commitec85b2452929066c69d9453b098e83582d88521e (patch)
tree63acf99f896961bbbe842a7f6d16fd865da7bace /include/functions_html.inc.php
parent335cbc9540bbc44d8184662d8bd63f933f876139 (diff)
Issue 1521 : correction of separator problem
git-svn-id: http://piwigo.org/svn/trunk@5924 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_html.inc.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 6e97d0054..0ab3aae42 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -42,7 +42,7 @@ function get_cat_display_name($cat_informations,
//$output = '<a href="'.get_absolute_root_url().$conf['home_page'].'">'.l10n('Home').'</a>';
$output = '';
- $is_first = true;
+ $is_first=true;
foreach ($cat_informations as $cat)
{
@@ -55,11 +55,14 @@ function get_cat_display_name($cat_informations,
$cat['name'],
'get_cat_display_name'
);
-
- if (!$is_first)
+
+ if ($is_first)
+ {
+ $is_first=false;
+ }
+ else
{
$output.= $conf['level_separator'];
- $is_first = false;
}
if ( !isset($url) )