Avoid Huge error message when unable to read log file
This commit is contained in:
parent
2fa9e3279c
commit
7de591f5cc
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue