summaryrefslogtreecommitdiffstats
path: root/lib/log.php
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2011-12-21 18:35:29 +0100
committerBartek Przybylski <bart.p.pl@gmail.com>2011-12-21 18:35:29 +0100
commit3c428671090e2bd3d46d76567a45c2a9e1639127 (patch)
tree785f2821086745b4bbef1bc01e4fb111c961dc83 /lib/log.php
parent865be6064a1f2f896ca3657fa6eef590748a4e39 (diff)
parente1b9b65e4159bdd6e0ed81c8cd6b588f03b3a018 (diff)
downloadnextcloud-server-3c428671090e2bd3d46d76567a45c2a9e1639127.tar.gz
nextcloud-server-3c428671090e2bd3d46d76567a45c2a9e1639127.zip
merged
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){