From: hickert Date: Wed, 10 Nov 2010 13:56:50 +0000 (+0000) Subject: Fixed isRegistered detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bc7132131db8e03a9f49351b0a9deaf4e64f40af;p=gosa.git Fixed isRegistered detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20222 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_GOsaRegistration.inc b/gosa-core/include/class_GOsaRegistration.inc index 81433a959..2090e9deb 100644 --- a/gosa-core/include/class_GOsaRegistration.inc +++ b/gosa-core/include/class_GOsaRegistration.inc @@ -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); }