[Pkg-owncloud-commits] [owncloud] 13/123: Do not run method when the path is empty
David Prévot
taffit at moszumanska.debian.org
Tue May 19 23:55:08 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 05fe2006ee227a6097fa5804cd32db1a57b8672a
Author: Joas Schilling <nickvergessen at owncloud.com>
Date: Thu May 7 14:31:21 2015 +0200
Do not run method when the path is empty
---
apps/files_versions/lib/storage.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/apps/files_versions/lib/storage.php b/apps/files_versions/lib/storage.php
index 4a5b47d..f98b134 100644
--- a/apps/files_versions/lib/storage.php
+++ b/apps/files_versions/lib/storage.php
@@ -326,6 +326,9 @@ class Storage {
*/
public static function getVersions($uid, $filename, $userFullPath = '') {
$versions = array();
+ if ($filename === '') {
+ return $versions;
+ }
// fetch for old versions
$view = new \OC\Files\View('/' . $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