diff options
Diffstat (limited to 'ui/app/controllers/CControllerHostCreate.php')
-rw-r--r-- | ui/app/controllers/CControllerHostCreate.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/controllers/CControllerHostCreate.php b/ui/app/controllers/CControllerHostCreate.php index c7f835922d0..ad46aeeb59b 100644 --- a/ui/app/controllers/CControllerHostCreate.php +++ b/ui/app/controllers/CControllerHostCreate.php @@ -117,6 +117,7 @@ class CControllerHostCreate extends CControllerHostUpdateGeneral { $result = DBend(true); } catch (Exception $e) { + $result = false; DBend(false); } @@ -205,7 +206,7 @@ class CControllerHostCreate extends CControllerHostUpdateGeneral { return false; } - if (!copyItems($src_hostid, $hostid, true)) { + if (!copyItemsToHosts('hostids', [$src_hostid], false, [$hostid])) { return false; } |