mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
Avoid error if unlink parent is not a directory
This commit is contained in:
parent
9c8ec0d872
commit
3fdb3cd3d5
@ -607,7 +607,7 @@ class StreamWrapper extends Api\Db\Pdo implements Vfs\StreamWrapperIface
|
|||||||
$stmt = self::$pdo->prepare('DELETE FROM '.self::PROPS_TABLE.' WHERE fs_id=?');
|
$stmt = self::$pdo->prepare('DELETE FROM '.self::PROPS_TABLE.' WHERE fs_id=?');
|
||||||
$stmt->execute(array($stat['ino']));
|
$stmt->execute(array($stat['ino']));
|
||||||
|
|
||||||
if ($stat['mime'] !== self::SYMLINK_MIME_TYPE)
|
if($stat['mime'] !== self::SYMLINK_MIME_TYPE && is_array($parent_stat))
|
||||||
{
|
{
|
||||||
$this->adjustDirSize($parent_stat['ino'], -$stat['size']);
|
$this->adjustDirSize($parent_stat['ino'], -$stat['size']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user