summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-11-28 19:31:35 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2013-11-28 19:31:35 +0100
commit348706854cd47f3fd104fbc8f5af7595980f5084 (patch)
tree69c5703b32adeae39ba6013b6896fe02305be8dd /apps/files_versions
parent466ed01e5d9dc0f7c813a04bea09adcbe1f25024 (diff)
downloadnextcloud-server-348706854cd47f3fd104fbc8f5af7595980f5084.tar.gz
nextcloud-server-348706854cd47f3fd104fbc8f5af7595980f5084.zip
use better coding style
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/lib/versions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index 65ed33fe2a0..42a15612d67 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);