diff options
author | Brice Maron <brice@bmaron.net> | 2011-11-06 14:37:22 +0100 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2011-11-06 14:37:22 +0100 |
commit | 7de591f5cc1cfadc5c2b0f88cded25578cd58350 (patch) | |
tree | 61b3cefd0558ba822e31db686b01abc50a34616e /lib/log.php | |
parent | 2fa9e3279cd305c9ca6eef01918fb6fa418db7db (diff) | |
download | nextcloud-server-7de591f5cc1cfadc5c2b0f88cded25578cd58350.tar.gz nextcloud-server-7de591f5cc1cfadc5c2b0f88cded25578cd58350.zip |
Avoid Huge error message when unable to read log file
Diffstat (limited to 'lib/log.php')
-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){ |