Do not run method when the path is empty

This commit is contained in:
Joas Schilling 2015-05-07 14:31:21 +02:00
parent 2344298954
commit 05fe2006ee

View file

@ -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 . '/');