Closed (fixed)
Project:
Internationalization
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2009 at 14:41 UTC
Updated:
4 Feb 2009 at 16:30 UTC
i18nblocks.module line 102:
/**
* Implementation of hook_form_FORM_ID_alter().
*/
function i18nblocks_form_block_box_delete_alter(&$form, $form_state) {
$delta = db_result(db_query('SELECT ibid FROM i18n_blocks WHERE delta = %d', arg(4)));
$form['delta'] = array(
'#type' => 'value',
'#value' => $delta,
);
$form['#submit'][] = 'i18nblocks_block_delete_submit';
}
You need to wrap that tablename in curley braces otherwise things break when using table prefixs. Change:
...SELECT ibid FROM i18n_blocks WHERE delta...
to:
...SELECT ibid FROM {i18n_blocks} WHERE delta...
Comments
Comment #1
jose reyero commentedYou're right, thanks for pointing this out.