ensure that drop_item doesn't recurse

This commit is contained in:
friendica 2013-11-26 23:00:32 -08:00
parent fd57b63c1d
commit ff635f0133

View File

@ -3525,7 +3525,7 @@ function drop_item($id,$interactive = true) {
intval($id) intval($id)
); );
if(! $r) { if((! $r) || ($r[0]['item_restrict'] & ITEM_DELETED)) {
if(! $interactive) if(! $interactive)
return 0; return 0;
notice( t('Item not found.') . EOL); notice( t('Item not found.') . EOL);