1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-27 05:25:47 +02:00

[ticket/10759] Make sure style ids are integers

PHPBB3-10759
This commit is contained in:
Nils Adermann
2012-04-19 03:51:17 +02:00
parent 1870421521
commit 439ade4ee2

View File

@ -2468,7 +2468,7 @@ function change_database_data(&$no_updates, $version)
'style_parent_tree' => '', 'style_parent_tree' => '',
); );
_sql('UPDATE ' . STYLES_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . ' WHERE style_id = ' . $style_row['style_id'], $errored, $error_ary); _sql('UPDATE ' . STYLES_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . ' WHERE style_id = ' . $style_row['style_id'], $errored, $error_ary);
$valid_styles[] = $style_row['style_id']; $valid_styles[] = (int) $style_row['style_id'];
} }
} }