Avoid Huge error message when unable to read log file

remotes/origin/stable
Brice Maron 15 years ago
parent 2fa9e3279c
commit 7de591f5cc
  1. 3
      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){

Loading…
Cancel
Save