From: Aaron Schulz Date: Wed, 5 Oct 2011 01:45:26 +0000 (+0000) Subject: Ported in r98971 from deployment X-Git-Tag: 1.31.0-rc.0~27265 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=d184e26ab279d8d2813e3fda8b77e4397645380c;p=lhc%2Fweb%2Fwiklou.git Ported in r98971 from deployment --- diff --git a/skins/Standard.php b/skins/Standard.php index c3e189daee..de63eab3bf 100644 --- a/skins/Standard.php +++ b/skins/Standard.php @@ -118,11 +118,13 @@ class StandardTemplate extends LegacyTemplate { foreach ( $bar as $browseLinks ) { if ( $barnumber > 1 ) { $s .= "\n
"; - } - foreach ( $browseLinks as $link ) { - if ( $link['text'] != '-' ) { - $s .= "" . - htmlspecialchars( $link['text'] ) . '' . $sep; + } + if ( is_array( $browseLinks ) ) { + foreach ( $browseLinks as $link ) { + if ( $link['text'] != '-' ) { + $s .= "" . + htmlspecialchars( $link['text'] ) . '' . $sep; + } } } if ( $barnumber == 1 ) {