Update commonobject.class.php

This commit is contained in:
Laurent Destailleur
2020-06-06 21:41:33 +02:00
committed by GitHub
parent 87806346c7
commit bb192195f1

View File

@@ -7892,7 +7892,7 @@ abstract class CommonObject
}
// Delete cascade first
if (is_array($this->childtablesoncascade)) {
if (is_array($this->childtablesoncascade) && !empty($this->childtablesoncascade)) {
foreach ($this->childtablesoncascade as $table)
{
$deleteFromObject = explode(':', $table);