mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:50:12 +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
|
@ -290,7 +290,7 @@ class FileTag
|
|||
return false;
|
||||
}
|
||||
|
||||
$fields = ['file' => str_replace($pattern, '', $item['file'])];
|
||||
$fields = ['file' => str_replace($pattern, null, $item['file'])];
|
||||
Item::update($fields, ['id' => $item_id]);
|
||||
|
||||
$r = q("SELECT `oid` FROM `term` WHERE `term` = '%s' AND `otype` = %d AND `type` = %d AND `uid` = %d",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue