Code

Updated setup migration
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 Dec 2008 15:37:32 +0000 (15:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 Dec 2008 15:37:32 +0000 (15:37 +0000)
-Admin wasn't detected.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13186 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/setup/class_setupStep_Migrate.inc

index e1819137b1576fa517916ebc61b4ddda13c4f1a1..1a23f45acba4bb6c8ae04b5f9a2ee18c33896113 100644 (file)
@@ -1008,6 +1008,7 @@ class Step_Migrate extends setup_step
         }
       }
 
+
       /* Print out results 
        */
       if($GOsa_25_found){
@@ -1032,14 +1033,14 @@ class Step_Migrate extends setup_step
         $this->checks['acls']['STATUS']    = TRUE;
         $this->checks['acls']['STATUS_MSG']= _("Ok");
         $this->checks['acls']['ERROR_MSG'] = $str;
-      }elseif($GOsa_25_found){
+      }else{
         $this->checks['acls']['STATUS']    = FALSE;
         $this->checks['acls']['STATUS_MSG']= _("Failed");
         $this->checks['acls']['ERROR_MSG']= _("There is no GOsa administrator account inside your LDAP.")."&nbsp;";
         $this->checks['acls']['ERROR_MSG'].= "<input type='submit' name='create_acls' value='"._("Create")."'>";
       }
     }
-    return($ldap->count()>=1);
+    return($GOsa_26_found);
   }