diff options
author | friendica <info@friendica.com> | 2013-11-26 23:00:32 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-26 23:00:32 -0800 |
commit | ff635f0133532b82efc1e1fb531a1e3943cfe337 (patch) | |
tree | 4f6533326a7aba299525f08859d802ac621efe41 | |
parent | fd57b63c1d8e840db6902c7f8e04f69de2c58a3b (diff) | |
download | volse-hubzilla-ff635f0133532b82efc1e1fb531a1e3943cfe337.tar.gz volse-hubzilla-ff635f0133532b82efc1e1fb531a1e3943cfe337.tar.bz2 volse-hubzilla-ff635f0133532b82efc1e1fb531a1e3943cfe337.zip |
ensure that drop_item doesn't recurse
-rwxr-xr-x | include/items.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index 6968781f7..02f733d92 100755 --- a/include/items.php +++ b/include/items.php @@ -3525,7 +3525,7 @@ function drop_item($id,$interactive = true) { intval($id) ); - if(! $r) { + if((! $r) || ($r[0]['item_restrict'] & ITEM_DELETED)) { if(! $interactive) return 0; notice( t('Item not found.') . EOL); |