Code

fixed error handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 Sep 2009 06:22:19 +0000 (06:22 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 Sep 2009 06:22:19 +0000 (06:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14380 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/opsi/admin/opsiLicenses/class_opsiLicenses.inc

index 8c1c09c658fd13428e025f77e521d50fb5fcc1bf..3884f7783738bd643ac605c4a2c1c5a86d46d17d 100644 (file)
@@ -293,9 +293,9 @@ class opsiLicenses extends plugin
     $si = new opsiLicenceHandler($this->config);
     $this->licenses = array();
     $res = $si->listPools();
-    if($this->si->is_error() || !$res){
+    if($si->is_error() || !$res){
       $this->init_successfull = FALSE;
-      msg_dialog::display(_("Error"),msgPool::siError($this->si->get_error()),ERROR_DIALOG);
+      msg_dialog::display(_("Error"),msgPool::siError($si->get_error()),ERROR_DIALOG);
       return;
     }else{