diff options
author | Michael Vogel <icarus@dabo.de> | 2012-05-26 15:42:23 +0200 |
---|---|---|
committer | Michael Vogel <icarus@dabo.de> | 2012-05-26 15:42:23 +0200 |
commit | a08232fa955385b2eaff5f9094b39071fb1632ae (patch) | |
tree | b18ccde349d9f2a0dc06e32bdae0007b5953d4f9 /mod/item.php | |
parent | 7f19d39b146844fd71d148690d3e550df9d3043b (diff) | |
parent | 817fc37f41c030381507384db581f62d9a1b5044 (diff) | |
download | volse-hubzilla-a08232fa955385b2eaff5f9094b39071fb1632ae.tar.gz volse-hubzilla-a08232fa955385b2eaff5f9094b39071fb1632ae.tar.bz2 volse-hubzilla-a08232fa955385b2eaff5f9094b39071fb1632ae.zip |
Merge branch 'master' of github.com:annando/friendica
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php index 81dd553cd..df242d6f7 100644 --- a/mod/item.php +++ b/mod/item.php @@ -355,13 +355,15 @@ function item_post(&$a) { $image_uri = substr($image_uri,0, strpos($image_uri,'-')); if(! strlen($image_uri)) continue; - $srch = '<' . intval($contact_record['id']) . '>'; + $srch = '<' . intval($contact_id) . '>'; + $r = q("SELECT `id` FROM `photo` WHERE `allow_cid` = '%s' AND `allow_gid` = '' AND `deny_cid` = '' AND `deny_gid` = '' AND `resource-id` = '%s' AND `uid` = %d LIMIT 1", dbesc($srch), dbesc($image_uri), intval($profile_uid) ); + if(! count($r)) continue; |