diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-08-12 14:00:53 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-08-12 14:00:53 +0200 |
commit | e920a0a10c3027700e61166a6f8d4ea29a9ff102 (patch) | |
tree | c49a443d503db101c2de72639f26eddc3aae1c9b /inc/changelog.php | |
parent | 2240ea1f316156f3cb4475ea23a16246c999b6f0 (diff) | |
download | rpg-e920a0a10c3027700e61166a6f8d4ea29a9ff102.tar.gz rpg-e920a0a10c3027700e61166a6f8d4ea29a9ff102.tar.bz2 |
handle empty changelog in getRecentsSince()
Diffstat (limited to 'inc/changelog.php')
-rw-r--r-- | inc/changelog.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/changelog.php b/inc/changelog.php index 24583b341..7ca7c62e9 100644 --- a/inc/changelog.php +++ b/inc/changelog.php @@ -254,6 +254,7 @@ function getRecentsSince($from,$to=null,$ns='',$flags=0){ } else { $lines = @file($conf['changelog']); } + if(!$lines) return $recent; // we start searching at the end of the list $lines = array_reverse($lines); |