ensure that drop_item doesn't recurse
This commit is contained in:
parent
fd57b63c1d
commit
ff635f0133
@ -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);
|
||||||
|
Reference in New Issue
Block a user