Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2011-11-06 17:37:22 +0400
committerBrice Maron <brice@bmaron.net>2011-11-06 17:37:22 +0400
commit7de591f5cc1cfadc5c2b0f88cded25578cd58350 (patch)
tree61b3cefd0558ba822e31db686b01abc50a34616e /lib/log.php
parent2fa9e3279cd305c9ca6eef01918fb6fa418db7db (diff)
Avoid Huge error message when unable to read log file
Diffstat (limited to 'lib/log.php')
-rw-r--r--lib/log.php3
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){