Commit c198a0686047f1c0a74148d746cfd1034f3b854b

Authored by Elena.Budnik
1 parent f240dc8e

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,8 +328,9 @@ class UserMgr
328 // New Bases to add 328 // New Bases to add
329 if (count($basesToAdd) > 0) { 329 if (count($basesToAdd) > 0) {
330 foreach ($basesToAdd as $baseToAdd) { 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