Skip to content

Commit

Permalink
Not respecting $force
Browse files Browse the repository at this point in the history
Fixes XOOPS#41
  • Loading branch information
geekwright committed Mar 15, 2016
1 parent 95fc9bf commit 153c67a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/modules/profile/class/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,8 @@ public function insert(XoopsObject $obj, $force = false)
}

$sql = "ALTER TABLE `" . $profile_handler->table . "` " . $changetype . " `" . $obj->cleanVars['field_name'] . "` " . $type . $maxlengthstring . ' NULL';
if (!$this->db->query($sql)) {
$result = $force ? $this->db->queryF($sql) : $this->db->query($sql);
if (!$result) {
return false;
}
}
Expand Down

0 comments on commit 153c67a

Please sign in to comment.