[Pkg-owncloud-commits] [owncloud] 26/52: use better coding style

David Prévot taffit at moszumanska.debian.org
Mon Dec 2 01:49:39 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 348706854cd47f3fd104fbc8f5af7595980f5084
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date:   Thu Nov 28 19:31:35 2013 +0100

    use better coding style
---
 apps/files_versions/lib/versions.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index 65ed33f..42a1561 100644
--- a/apps/files_versions/lib/versions.php
+++ b/apps/files_versions/lib/versions.php
@@ -169,7 +169,8 @@ class Storage {
 			$versions_fileview = new \OC\Files\View('/' . $uid . '/files_versions');
 
 			$abs_path = $versions_fileview->getLocalFile($filename . '.v');
-			if (($versions = self::getVersions($uid, $filename))) {
+			$versions = self::getVersions($uid, $filename);
+			if (!empty($versions)) {
 				$versionsSize = self::getVersionsSize($uid);
 				if ($versionsSize === false || $versionsSize < 0) {
 					$versionsSize = self::calculateSize($uid);

-- 
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