Code

Removed check for object presence when
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Jul 2009 13:55:20 +0000 (13:55 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Jul 2009 13:55:20 +0000 (13:55 +0000)
updating freeze tags

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13925 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-plugins/fai/admin/fai/class_FAI.inc

index d8a993859b41c02335bfb2c80fdf81cb7ce51906..9f0805f7f4b0acdba775c73fad286089952aeec7 100644 (file)
@@ -518,14 +518,10 @@ class FAI
           if(!empty($r)){
 
             foreach($r as $key ){
-              /* Only update the freeze tag if the entry actually exists. */
-              $ldap->cat($key);
-              if($ldap->count()){
-                /* Append FAIstate tag to ensure that freezed objects stay freezed
-                 */ 
-                $rTag = FAI::get_release_tag(FAI::get_release_dn($key));
-                $parent_attrs['FAIstate'] = $rTag;
-              }
+              /* Append FAIstate tag to ensure that freezed objects stay freezed
+               */ 
+              $rTag = FAI::get_release_tag(FAI::get_release_dn($key));
+              $parent_attrs['FAIstate'] = $rTag;
               /* Don't copy over subobjects in subreleases if their parent is in "removed" state */
               if(!FAI::parent_is_removed($key)){
                 if(DEBUG_FAI_FUNC) {