From: hickert Date: Thu, 11 Sep 2008 13:38:30 +0000 (+0000) Subject: Only query opsi hosts, if they are available. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7c0200dd61a63dc1cbc8b46f11fe78d1d91e1b2b;p=gosa.git Only query opsi hosts, if they are available. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12426 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 61e2f725d..1b26ef9a4 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -1192,7 +1192,7 @@ class systems extends plugin /* Append opsi systems, the opsi extension have to installed. */ - if($this->opsi != NULL){ + if($this->opsi != NULL && $this->opsi->enabled()){ $opsi_clients = $this->opsi->get_hosts_for_system_management(); if($this->opsi->is_error()){ msg_dialog::display(_("Error"),msgPool::siError($this->opsi->get_error()),ERROR_DIALOG);