aboutsummaryrefslogtreecommitdiff
path: root/templates/timeline.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/timeline.inc.php')
-rw-r--r--templates/timeline.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/timeline.inc.php b/templates/timeline.inc.php
index 234ea83..a29e9dd 100644
--- a/templates/timeline.inc.php
+++ b/templates/timeline.inc.php
@@ -15,6 +15,10 @@
// get posts
$posts = db_select_posts(NOW, $config['posts_per_page'], 'desc', $offset);
+ if(empty($posts)) {
+ header('Location: '.$config['url']);
+ die();
+ }
$title_suffix = '';
require(ROOT.DS.'snippets'.DS.'header.snippet.php');