diff options
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 805e458e1..c72cf0ed8 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -291,7 +291,7 @@ function blog_block($op = 'list', $delta = 0) { $block[0]['info'] = t('Recent blog posts'); return $block; } - else { + else if ($op == 'view') { if (user_access('access content')) { $block['content'] = node_title_list(db_query_range('SELECT DISTINCT(n.nid), n.title, n.created FROM {node} n '. node_access_join_sql() ." WHERE n.type = 'blog' AND n.status = 1 AND ". node_access_where_sql() .' ORDER BY n.created DESC', 0, 10)); $block['content'] .= '<div class="more-link">'. l(t('more'), 'blog', array('title' => t('Read the latest blog entries.'))) .'</div>'; |