aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/start.php')
-rw-r--r--mod/blog/start.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php
index b2da00bc7..052c63651 100644
--- a/mod/blog/start.php
+++ b/mod/blog/start.php
@@ -93,7 +93,7 @@ function blog_init() {
* @todo no archives for all blogs or friends
*
* @param array $page
- * @return void
+ * @return bool
*/
function blog_page_handler($page) {
@@ -141,15 +141,16 @@ function blog_page_handler($page) {
case 'all':
$params = blog_get_page_content_list();
break;
+ default:
+ return false;
}
- if (isset($params)) {
- $params['sidebar'] .= elgg_view('blog/sidebar', array('page' => $page_type));
+ $params['sidebar'] .= elgg_view('blog/sidebar', array('page' => $page_type));
- $body = elgg_view_layout('content', $params);
+ $body = elgg_view_layout('content', $params);
- echo elgg_view_page($params['title'], $body);
- }
+ echo elgg_view_page($params['title'], $body);
+ return true;
}
/**