Fix phpcs

This commit is contained in:
Laurent Destailleur 2021-06-11 18:44:01 +02:00
parent 4cde4f6162
commit eefc6ddf83
2 changed files with 2 additions and 3 deletions

View File

@ -78,7 +78,6 @@ $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
if (empty($reshook)) { if (empty($reshook)) {
if ($cancel) { if ($cancel) {
$action = ''; $action = '';
} }

View File

@ -705,8 +705,8 @@ class Account extends CommonObject
$sql .= ", ".price2num($this->min_allowed); $sql .= ", ".price2num($this->min_allowed);
$sql .= ", ".price2num($this->min_desired); $sql .= ", ".price2num($this->min_desired);
$sql .= ", '".$this->db->escape($this->comment)."'"; $sql .= ", '".$this->db->escape($this->comment)."'";
$sql .= ", ".($this->state_id > 0 ? $this->state_id : "null"); $sql .= ", ".($this->state_id > 0 ? ((int) $this->state_id) : "null");
$sql .= ", ".($this->country_id > 0 ? $this->country_id : "null"); $sql .= ", ".($this->country_id > 0 ? ((int) $this->country_id) : "null");
$sql .= ", '".$this->db->escape($this->ics)."'"; $sql .= ", '".$this->db->escape($this->ics)."'";
$sql .= ", '".$this->db->escape($this->ics_transfer)."'"; $sql .= ", '".$this->db->escape($this->ics_transfer)."'";
$sql .= ")"; $sql .= ")";