Code

Fixed isRegistered detection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Nov 2010 13:56:50 +0000 (13:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Nov 2010 13:56:50 +0000 (13:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20222 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_GOsaRegistration.inc

index 81433a95964f14553ed461b7fb49dbbaf71c8b02..2090e9deb633f02af066a6d63e0118e6d511c9e1 100644 (file)
@@ -95,14 +95,12 @@ class GOsaRegistration
 
     function isInstanceRegisteredWithServer()
     {
-        if($this->isRegistered === NULL){
-            $con = $this->getConnection();
-            $res = $con->isInstanceRegistered($this->config->getInstanceUuid());
-            if($con->success()){
-                $this->isRegistered = $res;
-            }else{
-                return(FALSE);
-            }
+        $con = $this->getConnection();
+        $res = $con->isInstanceRegistered($this->config->getInstanceUuid());
+        if($con->success()){
+            $this->isRegistered = $res;
+        }else{
+            return(FALSE);
         }
         return($this->isRegistered);
     }