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

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