Avoid Huge error message when unable to read log file

This commit is contained in:
Brice Maron 2011-11-06 14:37:22 +01:00
parent 2fa9e3279c
commit 7de591f5cc
1 changed files with 3 additions and 0 deletions

View File

@ -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){