diff options
-rw-r--r-- | lib/log.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/log.php b/lib/log.php index 98333be54fe..446ddd48848 100644 --- a/lib/log.php +++ b/lib/log.php @@ -59,6 +59,9 @@ class OC_Log{ return array(); } $fh=fopen($logFile,'r'); + if($fh === false){ // Unable to read log file! + return array(); + } while(!feof($fh)){ $line=fgets($fh); if($line){ |