need to catch the statement in line 1347

This commit is contained in:
Ralf Becker 2021-08-18 10:48:24 +02:00
parent 226ee1485d
commit 5bc4dc90e3

View File

@ -1344,15 +1344,16 @@ class Link extends Link\Storage
Storage\History::static_add($link['app2'],$link['id2'],$GLOBALS['egw_info']['user']['account_id'],'~file~','', Vfs::basename($url));
}
}
try {
if (($Ok = !file_exists($url) || Vfs::remove($url,true)) && ((int)$app > 0 || $fname))
{
// try removing the dir, in case it's empty
try {
if (($dir = Vfs::dirname($url))) @Vfs::rmdir($dir);
}
}
catch (\Exception $e) {
// ignore SQL error caused by only virtual directories with non-integer (hash) fs_id
}
$Ok = false;
}
if (!is_null($current_is_root))
{