Update commonobject.class.php

This commit is contained in:
Laurent Destailleur 2020-07-03 00:27:30 +02:00 committed by GitHub
parent d2a364eea8
commit a44f5376da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2542,9 +2542,8 @@ abstract class CommonObject
$resql = $this->db->query($sql);
if ($resql)
{
if($this->db->num_rows($resql) > 0) {
while($row = $this->db->fetch_row($resql)) {
if ($this->db->num_rows($resql) > 0) {
while ($row = $this->db->fetch_row($resql)) {
$rows[] = $row[0];
if (!empty($includealltree)) $rows = array_merge($rows, $this->getChildrenOfLine($row[0]), $includealltree);
}