diff options
Diffstat (limited to 'templates/timeline.inc.php')
-rw-r--r-- | templates/timeline.inc.php | 4 |
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'); |