diff --git a/include/class_template.inc b/include/class_template.inc index e780b2c21c97fbc3620fa524225d34b5c169ecdd..7d416cbfec568b73ffcbab196bb14f5c3e1f0123 100644 --- a/include/class_template.inc +++ b/include/class_template.inc @@ -194,6 +194,7 @@ class template { if ($targetdn !== NULL) { $this->tabObject = objects::open($targetdn, $this->type); + unset($this->attrs['objectClass']['count']); foreach ($this->tabObject->by_object as $class => &$plugin) { if ($plugin->is_account || $plugin->ignore_account) { $this->attrs['objectClass'] = $plugin->mergeObjectClasses($this->attrs['objectClass']);