aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2012-04-09 02:20:34 +0200
committerzottel <github@zottel.net>2012-04-09 02:20:34 +0200
commit7cf946e004b45fdcd7e2dc513ab42c8531fe126b (patch)
treeb9a2b6e2efc31ada403fb5ff56204bac376ef7d5 /mod/item.php
parent315d496290747aab8b3147dc24b822460071bb2d (diff)
parent63c881b50d1ce4da50763d8a806c68658865ca17 (diff)
downloadvolse-hubzilla-7cf946e004b45fdcd7e2dc513ab42c8531fe126b.tar.gz
volse-hubzilla-7cf946e004b45fdcd7e2dc513ab42c8531fe126b.tar.bz2
volse-hubzilla-7cf946e004b45fdcd7e2dc513ab42c8531fe126b.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index 72e63865b..82fb0bf72 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -351,7 +351,7 @@ function item_post(&$a) {
$image_uri = substr($image_uri,0, strpos($image_uri,'-'));
if(! strlen($image_uri))
continue;
- $srch = '<' . intval($profile_uid) . '>';
+ $srch = '<' . intval($contact_record['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),