aboutsummaryrefslogtreecommitdiffstats
path: root/settings/admin.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-07-29 20:41:34 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-07-29 20:41:34 +0200
commit81845277604f5fede2013fcb4654663e2b44794d (patch)
tree1834e7dba51d24026449d434248a80764aa14adb /settings/admin.php
parentb5ea97ef817cc2b33269f4518727db259ec6c960 (diff)
downloadnextcloud-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.php5
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();