From d6998ffef2277eefc6a48c2371cc3c6077102bf5 Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 16 Feb 2011 13:19:54 -0800 Subject: small fixes --- mod/message.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mod/message.php') diff --git a/mod/message.php b/mod/message.php index c004b3d63..ef3be2c5e 100644 --- a/mod/message.php +++ b/mod/message.php @@ -87,10 +87,11 @@ function message_post(&$a) { $image_uri = substr($image,strrpos($image,'/') + 1); $image_uri = substr($image_uri,0, strpos($image_uri,'-')); $r = q("UPDATE `photo` SET `allow_cid` = '%s' - WHERE `resource-id` = '%s' AND `album` = '%s' ", + WHERE `resource-id` = '%s' AND `album` = '%s' AND `uid` = %d ", dbesc('<' . $recipient . '>'), dbesc($image_uri), - dbesc( t('Wall Photos')) + dbesc( t('Wall Photos')), + intval(local_user()) ); } } -- cgit v1.2.3