Do not run method when the path is empty
This commit is contained in:
parent
2344298954
commit
05fe2006ee
1 changed files with 3 additions and 0 deletions
|
@ -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 . '/');
|
||||
|
||||
|
|
Loading…
Reference in a new issue