Index: trunk/phase3/skins/Standard.php |
— | — | @@ -118,11 +118,13 @@ |
119 | 119 | foreach ( $bar as $browseLinks ) { |
120 | 120 | if ( $barnumber > 1 ) { |
121 | 121 | $s .= "\n<hr class='sep' />"; |
122 | | - } |
123 | | - foreach ( $browseLinks as $link ) { |
124 | | - if ( $link['text'] != '-' ) { |
125 | | - $s .= "<a href=\"{$link['href']}\">" . |
126 | | - htmlspecialchars( $link['text'] ) . '</a>' . $sep; |
| 122 | + } |
| 123 | + if ( is_array( $browseLinks ) ) { |
| 124 | + foreach ( $browseLinks as $link ) { |
| 125 | + if ( $link['text'] != '-' ) { |
| 126 | + $s .= "<a href=\"{$link['href']}\">" . |
| 127 | + htmlspecialchars( $link['text'] ) . '</a>' . $sep; |
| 128 | + } |
127 | 129 | } |
128 | 130 | } |
129 | 131 | if ( $barnumber == 1 ) { |