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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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