Skip to content

Commit 03c53bb

Browse files
committed
Fix UCP migration
1 parent 9b41c17 commit 03c53bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

skeleton/migrations/install_ucp_module.php.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ class install_ucp_module extends \phpbb\db\migration\migration
2222
WHERE module_class = 'ucp'
2323
AND module_langname = 'UCP_DEMO_TITLE'";
2424
$result = $this->db->sql_query($sql);
25-
$module_id = (int) $this->db->sql_fetchfield('module_id');
25+
$module_id = $this->db->sql_fetchfield('module_id');
2626
$this->db->sql_freeresult($result);
2727
28-
return !$module_id;
28+
return $module_id !== false;
2929
}
3030

3131
static public function depends_on()

0 commit comments

Comments
 (0)