We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b41c17 commit 03c53bbCopy full SHA for 03c53bb
1 file changed
skeleton/migrations/install_ucp_module.php.tpl
@@ -22,10 +22,10 @@ class install_ucp_module extends \phpbb\db\migration\migration
22
WHERE module_class = 'ucp'
23
AND module_langname = 'UCP_DEMO_TITLE'";
24
$result = $this->db->sql_query($sql);
25
- $module_id = (int) $this->db->sql_fetchfield('module_id');
+ $module_id = $this->db->sql_fetchfield('module_id');
26
$this->db->sql_freeresult($result);
27
28
- return !$module_id;
+ return $module_id !== false;
29
}
30
31
static public function depends_on()
0 commit comments