Update commonobject.class.php

This commit is contained in:
Laurent Destailleur 2020-06-06 21:40:20 +02:00 committed by GitHub
parent d9ac7ab9da
commit 87806346c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7990,7 +7990,7 @@ abstract class CommonObject
$this->db->begin();
$sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . $this->table_element;
$sql .= ' WHERE '.$parentField.' = ' . $parentId;
$sql .= ' WHERE '.$parentField.' = ' . (int) $parentId;
$resql = $this->db->query($sql);
if (!$resql) {