mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:50:11 +00:00
Fix deleting last element from saved folder + Fix displaying empty saved folder
This commit is contained in:
parent
460c257cb4
commit
52eb2281e4
4 changed files with 12 additions and 5 deletions
|
@ -911,7 +911,7 @@ class Item extends BaseObject
|
|||
}
|
||||
}
|
||||
|
||||
if (!empty($files)) {
|
||||
if (!is_null($files)) {
|
||||
Term::insertFromFileFieldByItemId($item['id'], $files);
|
||||
if (!empty($item['file'])) {
|
||||
DBA::update('item', ['file' => ''], ['id' => $item['id']]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue