missing uid check on comanche_block to ensure we get the block with that name that we own

This commit is contained in:
friendica 2013-09-20 18:41:15 -07:00
parent 7585b58d28
commit 15ae108832

View File

@ -86,7 +86,8 @@ function comanche_replace_region($match) {
function comanche_block($name) {
$o = '';
$r = q("select * from item left join item_id on iid = item_id and item_id.uid = item.uid and service = 'BUILDBLOCK' and sid = '%s' limit 1",
$r = q("select * from item left join item_id on iid = item_id and item_id.uid = item.uid and item.uid = %d and service = 'BUILDBLOCK' and sid = '%s' limit 1",
intval($a->profile['profile_uid']),
dbesc($name)
);
if($r) {