[Pkg-owncloud-commits] [owncloud] 06/79: [admin settings] only retrieve log file size if file exists
David Prévot
taffit at moszumanska.debian.org
Tue Sep 1 20:55:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 4409aed581fa77efabe35176f501c7801fb9ddef
Author: Morris Jobke <hey at morrisjobke.de>
Date: Wed Jul 29 20:41:34 2015 +0200
[admin settings] only retrieve log file size if file exists
* fixes #17467
---
settings/admin.php | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/settings/admin.php b/settings/admin.php
index 551608b..3021a8d 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();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list