aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-26 23:00:32 -0800
committerfriendica <info@friendica.com>2013-11-26 23:00:32 -0800
commitff635f0133532b82efc1e1fb531a1e3943cfe337 (patch)
tree4f6533326a7aba299525f08859d802ac621efe41
parentfd57b63c1d8e840db6902c7f8e04f69de2c58a3b (diff)
downloadvolse-hubzilla-ff635f0133532b82efc1e1fb531a1e3943cfe337.tar.gz
volse-hubzilla-ff635f0133532b82efc1e1fb531a1e3943cfe337.tar.bz2
volse-hubzilla-ff635f0133532b82efc1e1fb531a1e3943cfe337.zip
ensure that drop_item doesn't recurse
-rwxr-xr-xinclude/items.php2
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);