diff --git a/module/zanode/model.php b/module/zanode/model.php index d9833f4725..d76e1a8a74 100644 --- a/module/zanode/model.php +++ b/module/zanode/model.php @@ -616,8 +616,9 @@ class zanodemodel extends model ->page($pager) ->fetchAll(); - $hostIDList = array_column($list, 'parent'); - $hosts = $this->dao->select('id,status,heartbeat')->from(TABLE_ZAHOST) + $hostIDList = array(); + foreach($list as $l) $hostIDList[] = $l->parent; + $hosts = $this->dao->select('id,status,heartbeat')->from(TABLE_ZAHOST) ->where('id')->in(array_unique($hostIDList)) ->fetchAll('id');