diff options
author | Friendika <info@friendika.com> | 2011-02-16 13:19:54 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-16 13:19:54 -0800 |
commit | d6998ffef2277eefc6a48c2371cc3c6077102bf5 (patch) | |
tree | 2e8f08e4552a585dca5ef3633f220022f94cf890 | |
parent | acce5c95a373c68ac8a834396e822f6b177352ca (diff) | |
download | volse-hubzilla-d6998ffef2277eefc6a48c2371cc3c6077102bf5.tar.gz volse-hubzilla-d6998ffef2277eefc6a48c2371cc3c6077102bf5.tar.bz2 volse-hubzilla-d6998ffef2277eefc6a48c2371cc3c6077102bf5.zip |
small fixes
-rw-r--r-- | mod/item.php | 2 | ||||
-rw-r--r-- | mod/message.php | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php index 5bb4b1b73..21dfb4560 100644 --- a/mod/item.php +++ b/mod/item.php @@ -545,7 +545,7 @@ function item_content(&$a) { // generate a resource-id and therefore aren't intimately linked to the item. if(strlen($item['resource-id'])) { - $q("DELETE FROM `photo` WHERE `resource-id` = '%s' AND `uid` = %d ", + q("DELETE FROM `photo` WHERE `resource-id` = '%s' AND `uid` = %d ", dbesc($item['resource-id']), intval($item['uid']) ); 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()) ); } } |