diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-05-07 14:31:21 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-05-07 14:31:21 +0200 |
commit | 05fe2006ee227a6097fa5804cd32db1a57b8672a (patch) | |
tree | 10dea4842f1f225de250e58c7b9505081a3f042d /apps | |
parent | 234429895485c1003cad7e001e7ba88ec13343f5 (diff) | |
download | nextcloud-server-05fe2006ee227a6097fa5804cd32db1a57b8672a.tar.gz nextcloud-server-05fe2006ee227a6097fa5804cd32db1a57b8672a.zip |
Do not run method when the path is empty
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_versions/lib/storage.php | 3 |
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 . '/'); |