aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorRubén Calvo <rubencm@gmail.com>2017-09-08 10:59:47 +0200
committerRubén Calvo <rubencm@gmail.com>2017-09-08 10:59:47 +0200
commit4b1ec6abb7b2d2daa320ac5e2872e055bc5b07d0 (patch)
treeb75e2d7f5d20040eb44d99072ec0306a58ff072e /phpBB/phpbb
parent13b0f399612bf3c3f6ce04bda46429dab572e590 (diff)
downloadforums-4b1ec6abb7b2d2daa320ac5e2872e055bc5b07d0.tar
forums-4b1ec6abb7b2d2daa320ac5e2872e055bc5b07d0.tar.gz
forums-4b1ec6abb7b2d2daa320ac5e2872e055bc5b07d0.tar.bz2
forums-4b1ec6abb7b2d2daa320ac5e2872e055bc5b07d0.tar.xz
forums-4b1ec6abb7b2d2daa320ac5e2872e055bc5b07d0.zip
[ticket/15201] Fix tests
PHPBB3-15201
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/style_update_p1.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/style_update_p1.php b/phpBB/phpbb/db/migration/data/v310/style_update_p1.php
index dcf031a7a7..3e28e8747d 100644
--- a/phpBB/phpbb/db/migration/data/v310/style_update_p1.php
+++ b/phpBB/phpbb/db/migration/data/v310/style_update_p1.php
@@ -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('style_id');
+ $default_style = (int) $this->db->sql_fetchfield('style_id');
$this->db->sql_freeresult($result);
$this->config->set('default_style', $default_style);
@@ -184,7 +184,7 @@ class style_update_p1 extends \phpbb\db\migration\migration
// Reset styles for users
$this->sql_query('UPDATE ' . USERS_TABLE . "
- SET user_style = '" . $valid_styles[0] . "'
+ SET user_style = '" . (int) $valid_styles[0] . "'
WHERE " . $this->db->sql_in_set('user_style', $valid_styles, true));
}
}