|
...
|
...
|
@@ -3,7 +3,7 @@ if(!defined("_CHARSET")) exit( );
|
|
3
|
3
|
|
|
4
|
4
|
$content = '';
|
|
5
|
5
|
|
|
6
|
|
- if(isset($blocks[$block]['content'])) {
|
|
|
6
|
+ if(!is_null($block) && isset($blocks[$block]['content'])) {
|
|
7
|
7
|
foreach($blocks[$block]['content'] as $page) {
|
|
8
|
8
|
if(isset($pagelinks[$page]['link'])) {
|
|
9
|
9
|
if(empty($blocks[$block]['style'])) $content .= "<li ".($current == $page ? "id=\"menu_current\"" : "").">".$pagelinks[$page]['link']."</li>";
|
|
...
|
...
|
@@ -14,11 +14,11 @@ $content = '';
|
|
14
|
14
|
else {
|
|
15
|
15
|
$pages = array('home', 'recent', 'titles', 'catslink', 'series', 'members', 'authors', 'challenges', 'search', 'tens', 'featured', 'help', 'contactus', 'login', 'logout', 'adminarea');
|
|
16
|
16
|
foreach($pages as $page) {
|
|
17
|
|
- if(empty($pagelinks[$page])) continue;
|
|
|
17
|
+ if(!is_null($pagelinks[$page]) || empty($pagelinks[$page])) continue;
|
|
18
|
18
|
if(empty($blocks[$block]['style'])) $content .= "<li ".($current == $page ? "id=\"menu_current\"" : "").">".$pagelinks[$page]['link']."</li>";
|
|
19
|
19
|
else $content .= $pagelinks[$page]['link'];
|
|
20
|
20
|
}
|
|
21
|
21
|
}
|
|
22
|
|
- if(empty($blocks[$block]['style'])) $content = "<ul>$content</ul>";
|
|
|
22
|
+ if(!is_null($block) && empty($blocks[$block]['style'])) $content = "<ul>$content</ul>";
|
|
23
|
23
|
$content = "<div id=\"$block\">$content</div>";
|
|
24
|
24
|
?>
|