From bc7132131db8e03a9f49351b0a9deaf4e64f40af Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 10 Nov 2010 13:56:50 +0000 Subject: [PATCH] Fixed isRegistered detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20222 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_GOsaRegistration.inc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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); } -- 2.30.2