Code

Made it static
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Nov 2008 08:44:02 +0000 (08:44 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Nov 2008 08:44:02 +0000 (08:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12995 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index d380e1efe09d198f1fc41be611333a5bf6196031..ff7ef7bea9a74b23750fd47163c3a3370f9edd6e 100644 (file)
@@ -641,7 +641,7 @@ class FAI
     $ldap->cd($dn);
 
     $ui= get_userinfo();
-    $this->tag_attrs($attrs, $dn, $ui->gosaUnitTag);
+    FAI::tag_attrs($attrs, $dn, $ui->gosaUnitTag);
 
     $ldap->cat($dn,array("dn"));
     if($ldap->count()){
@@ -1238,7 +1238,7 @@ class FAI
   }
 
 
-  function tag_attrs(&$at, $dn= "", $tag= "", $show= false)
+  static function tag_attrs(&$at, $dn= "", $tag= "", $show= false)
   {                                                        
     /* Remove tags that may already be here... */                         
     remove_objectClass("gosaAdministrativeUnitTag", $at);