diff --git a/inc/changelog.php b/inc/changelog.php
index 24583b341a1fd6a17bf984440ebfbbc31d0729b3..7ca7c62e9d7b99fbfbae7d9dc65413f9a329dfbd 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);