diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-07-29 20:41:34 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-29 20:41:34 +0200 |
commit | 81845277604f5fede2013fcb4654663e2b44794d (patch) | |
tree | 1834e7dba51d24026449d434248a80764aa14adb /settings/admin.php | |
parent | b5ea97ef817cc2b33269f4518727db259ec6c960 (diff) | |
download | nextcloud-server-81845277604f5fede2013fcb4654663e2b44794d.tar.gz nextcloud-server-81845277604f5fede2013fcb4654663e2b44794d.zip |
[admin settings] only retrieve log file size if file exists
* fixes #17467
Diffstat (limited to 'settings/admin.php')
-rw-r--r-- | settings/admin.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/settings/admin.php b/settings/admin.php index 551608b5d25..3021a8d4d97 100644 --- a/settings/admin.php +++ b/settings/admin.php @@ -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(); |