Commit dd7868a4 authored by yched's avatar yched

#108037 - missing curly braces around table name - patch by smk-ka

parent b9ca8995
......@@ -19,7 +19,7 @@ function optionwidgets_update_1() {
$result = db_query("SELECT * FROM {node_field_instance} fi LEFT JOIN {node_field} f ON fi.field_name=f.field_name WHERE widget_type IN ('options_select', 'options_buttons')");
while ($field_instance = db_fetch_array($result)) {
$info = content_database_info($field_instance);
$result2 = db_query("SELECT DISTINCT ". $info['columns']['value']['column'] ." FROM ". $info['table'] ."");
$result2 = db_query("SELECT DISTINCT ". $info['columns']['value']['column'] ." FROM {". $info['table'] ."}");
while ($value = db_fetch_array($result2)) {
$values[$field_instance['field_name']][$value[$info['columns']['value']['column']]] = $value[$info['columns']['value']['column']];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment