From 3ce6344d40385e38335fb9716233cbf7c5241860 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Tue, 5 Jun 2012 17:44:07 -0400 Subject: [PATCH] Supress any warnings if log file does not exist --- lib/log/owncloud.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/log/owncloud.php b/lib/log/owncloud.php index 5913d8b5b83..92914af8fca 100644 --- a/lib/log/owncloud.php +++ b/lib/log/owncloud.php @@ -63,7 +63,7 @@ class OC_Log_Owncloud { self::init(); $minLevel=OC_Config::getValue( "loglevel", OC_Log::WARN ); $entries = array(); - $handle = fopen(self::$logFile, 'r'); + $handle = @fopen(self::$logFile, 'r'); if ($handle) { // Just a guess to set the file pointer to the right spot $maxLineLength = 150; -- 2.39.5