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:
commit
ddb32d42d2
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue