Fix list of favorites in VfsSelect contains previous selected contents as well

This commit is contained in:
Hadi Nategh 2017-11-20 17:49:36 +01:00
parent e1609978f7
commit 1ecfab062a

View File

@ -455,6 +455,7 @@ class Vfs extends File
$files = array();
$favorites = \EGroupware\Api\Framework\Favorites::get_favorites('filemanager');
$n = 0;
$content['dir'] = array();
foreach($favorites as $favorite)
{
$path = $favorite['state']['path'];