Add possibility to use a block a channel menu (set channel_menublock to the lowercase title of the block without special chars)

Fix comanche_block() SQL
This commit is contained in:
zottel
2013-10-01 09:36:28 +02:00
parent a6c542289a
commit d7b81b1afd
2 changed files with 6 additions and 1 deletions

View File

@@ -87,7 +87,7 @@ 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 item.uid = %d and service = 'BUILDBLOCK' and sid = '%s' limit 1",
$r = q("select * from item inner 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(get_app()->profile['profile_uid']),
dbesc($name)
);