[ticket/416] Cast affected rows to boolean

B3P-416
This commit is contained in:
Marc Alexander
2014-11-29 13:32:10 +01:00
parent 2aae1337dc
commit 1a5b678e0d

View File

@@ -104,7 +104,7 @@ class database_handler
WHERE module_order = ' . (int) ($module_data['module_order'] + ($direction * $step)) . '
AND module_column = ' . (int) $module_data['module_column'];
$this->db->sql_query($sql);
$updated = $this->db->sql_affectedrows();
$updated = (bool) $this->db->sql_affectedrows();
if ($updated)
{
$sql = 'UPDATE ' . PORTAL_MODULES_TABLE . '