Index: branches/wmf/1.18wmf1/skins/Standard.php |
— | — | @@ -109,11 +109,13 @@ |
110 | 110 | foreach ( $bar as $browseLinks ) { |
111 | 111 | if ( $barnumber > 1 ) { |
112 | 112 | $s .= "\n<hr class='sep' />"; |
113 | | - } |
114 | | - foreach ( $browseLinks as $link ) { |
115 | | - if ( $link['text'] != '-' ) { |
116 | | - $s .= "<a href=\"{$link['href']}\">" . |
117 | | - htmlspecialchars( $link['text'] ) . '</a>' . $sep; |
| 113 | + } |
| 114 | + if ( is_array( $browseLinks ) ) { |
| 115 | + foreach ( $browseLinks as $link ) { |
| 116 | + if ( $link['text'] != '-' ) { |
| 117 | + $s .= "<a href=\"{$link['href']}\">" . |
| 118 | + htmlspecialchars( $link['text'] ) . '</a>' . $sep; |
| 119 | + } |
118 | 120 | } |
119 | 121 | } |
120 | 122 | if ( $barnumber == 1 ) { |