diff options
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 260e462db58..8410a6671ef 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(); |