Commit c198a0686047f1c0a74148d746cfd1034f3b854b
1 parent
f240dc8e
Exists in
master
and in
99 other branches
check if remote base desc exists before add
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
php/classes/UserMgr.php
... | ... | @@ -328,8 +328,9 @@ class UserMgr |
328 | 328 | // New Bases to add |
329 | 329 | if (count($basesToAdd) > 0) { |
330 | 330 | foreach ($basesToAdd as $baseToAdd) { |
331 | - $centerNode = $this->makeNewBase($baseToAdd); | |
332 | - $this->paramMgr->xmlDom->documentElement->appendChild($centerNode); | |
331 | + $centerNode = $this->makeNewBase($baseToAdd); | |
332 | + if (isset($centerNode)) | |
333 | + $this->paramMgr->xmlDom->documentElement->appendChild($centerNode); | |
333 | 334 | } |
334 | 335 | } |
335 | 336 | ... | ... |