diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-11-28 19:31:35 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-11-28 19:31:35 +0100 |
commit | 348706854cd47f3fd104fbc8f5af7595980f5084 (patch) | |
tree | 69c5703b32adeae39ba6013b6896fe02305be8dd /apps/files_versions | |
parent | 466ed01e5d9dc0f7c813a04bea09adcbe1f25024 (diff) | |
download | nextcloud-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.php | 3 |
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); |