Merge pull request #17969 from owncloud/fix-log-file-check

[admin settings] only retrieve log file size if file exists
This commit is contained in:
Robin McCorkell 2015-07-29 21:58:16 +01:00
commit ddb32d42d2
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,10 @@ $entriesRemaining = count($entries) > $numEntriesToLoad;
$entries = array_slice($entries, 0, $numEntriesToLoad);
$logFilePath = OC_Log_Owncloud::getLogFilePath();
$doesLogFileExist = file_exists($logFilePath);
$logFileSize = filesize($logFilePath);
$logFileSize = 0;
if($doesLogFileExist) {
$logFileSize = filesize($logFilePath);
}
$config = \OC::$server->getConfig();
$appConfig = \OC::$server->getAppConfig();
$request = \OC::$server->getRequest();