mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
port to 4.1 PHRAS-1831
This commit is contained in:
@@ -1217,7 +1217,7 @@ class databox extends base implements ThumbnailedElement
|
||||
if ($domct !== false) {
|
||||
$nodesToDel = [];
|
||||
for($n = $domct->documentElement->firstChild; $n; $n = $n->nextSibling) {
|
||||
if(!($n->getAttribute('delbranch'))){
|
||||
if($n->nodeType == XML_ELEMENT_NODE && !($n->getAttribute('delbranch'))){
|
||||
$nodesToDel[] = $n;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user