Skip to content

Commit

Permalink
Fix sql error
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 18, 2021
1 parent 0bf213a commit 052511d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/commonobject.class.php
Expand Up @@ -1263,7 +1263,7 @@ public function liste_contact($status = -1, $source = 'external', $list = 0, $co
if ($source == 'external' || $source == 'thirdparty') {
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."socpeople t on ec.fk_socpeople = t.rowid";
}
$sql .= " WHERE ec.element_id =".$this->id;
$sql .= " WHERE ec.element_id =".((int) $this->id);
$sql .= " AND ec.fk_c_type_contact=tc.rowid";
$sql .= " AND tc.element='".$this->db->escape($this->element)."'";
if ($code) {
Expand Down

0 comments on commit 052511d

Please sign in to comment.