diff options
author | friendica <info@friendica.com> | 2014-05-14 03:10:36 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-14 03:10:36 -0700 |
commit | 722b6c78cbf8f0eb53c29fcc0995a488cf862031 (patch) | |
tree | c7f3ef8ebb0e50b397f05a7aefa1f3be91cd2e56 | |
parent | 2f1e4a6370da6892433b6d8d57362a5a6565e07c (diff) | |
download | volse-hubzilla-722b6c78cbf8f0eb53c29fcc0995a488cf862031.tar.gz volse-hubzilla-722b6c78cbf8f0eb53c29fcc0995a488cf862031.tar.bz2 volse-hubzilla-722b6c78cbf8f0eb53c29fcc0995a488cf862031.zip |
fix author delete (non-owner)
-rw-r--r-- | mod/item.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php index 9470a2b9c..68582e580 100644 --- a/mod/item.php +++ b/mod/item.php @@ -852,10 +852,10 @@ function item_content(&$a) { require_once('include/security.php'); if((argc() == 3) && (argv(1) === 'drop') && intval(argv(2))) { + require_once('include/items.php'); - $i = q("select id, uid, author_xchan, owner_xchan, source_xchan, item_restrict from item where id = %d and uid = %d limit 1", - intval(argv(2)), - intval(local_user()) + $i = q("select id, uid, author_xchan, owner_xchan, source_xchan, item_restrict from item where id = %d limit 1", + intval(argv(2)) ); if($i) { |