Supress any warnings if log file does not exist

This commit is contained in:
Michael Gapczynski 2012-06-05 17:44:07 -04:00
parent f1b10fcc93
commit 826a439c15
1 changed files with 1 additions and 1 deletions

View File

@ -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;