summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-05-07 14:31:21 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-05-07 14:31:21 +0200
commit05fe2006ee227a6097fa5804cd32db1a57b8672a (patch)
tree10dea4842f1f225de250e58c7b9505081a3f042d
parent234429895485c1003cad7e001e7ba88ec13343f5 (diff)
downloadnextcloud-server-05fe2006ee227a6097fa5804cd32db1a57b8672a.tar.gz
nextcloud-server-05fe2006ee227a6097fa5804cd32db1a57b8672a.zip
Do not run method when the path is empty
-rw-r--r--apps/files_versions/lib/storage.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_versions/lib/storage.php b/apps/files_versions/lib/storage.php
index 4a5b47d2c2b..f98b134cff2 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 . '/');