1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[ticket/14069] Corrected sql_fetchfield() in style_update_p1 migration

Changed the sql_fetchfield() call to comply to the function definition.

PHPBB3-14069
This commit is contained in:
Marco Kubuntu 2015-08-05 19:07:02 +02:00
parent 4aac578908
commit 32f5dc3d8b

View File

@ -160,7 +160,7 @@ class style_update_p1 extends \phpbb\db\migration\migration
FROM ' . STYLES_TABLE . "
WHERE style_name = 'prosilver'";
$result = $this->sql_query($sql);
$default_style = $this->db->sql_fetchfield($result);
$default_style = $this->db->sql_fetchfield('style_id');
$this->db->sql_freeresult($result);
$this->config->set('default_style', $default_style);