From: hickert Date: Wed, 10 Nov 2010 09:25:51 +0000 (+0000) Subject: Fixed error X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3f14bb7fad660fec3b02c120ab6e588086613730;p=gosa.git Fixed error git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20217 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/generic/statistics/class_statistics.inc b/gosa-core/plugins/generic/statistics/class_statistics.inc index 3caa0f588..c0937f8f3 100644 --- a/gosa-core/plugins/generic/statistics/class_statistics.inc +++ b/gosa-core/plugins/generic/statistics/class_statistics.inc @@ -155,13 +155,13 @@ class statistics extends plugin $smarty->assign("instanceRegistered", $this->instanceRegistered); $smarty->assign("serverAccessible", $this->serverAccessible); $smarty->assign("registrationNotWanted", $this->registrationNotWanted); + $plist = session::get('plist'); + $id = array_search('dashBoard', $plist->pluginList); + $smarty->assign('dashBoardId', $id); // If we have an unregistered instance of GOsa, display a message which // allows to registrate GOsa if(!$this->instanceRegistered){ - $plist = session::get('plist'); - $id = array_search('dashBoard', $plist->pluginList); - $smarty->assign('dashBoardId', $id); return($smarty->fetch(get_template_path('statistics.tpl', TRUE))); }