Clean code

This commit is contained in:
Laurent Destailleur
2021-08-27 23:36:06 +02:00
parent 46d993c9a6
commit 2dd91bf312
66 changed files with 235 additions and 225 deletions

View File

@@ -183,7 +183,7 @@ class CoreObject extends CommonObject
$this->{$className} = array();
$sql = 'SELECT rowid FROM '.MAIN_DB_PREFIX.$childTable.' WHERE '.$this->fk_element.' = '.$this->id;
$sql = 'SELECT rowid FROM '.MAIN_DB_PREFIX.$childTable.' WHERE '.$this->fk_element.' = '.((int) $this->id);
$res = $this->db->query($sql);
if ($res) {