From f345b2d4352a2cbad72c43963e6c8a9a019b1693 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 14 May 2006 07:47:50 +0000 Subject: [PATCH] fixed creation of new accounts --- lam/lib/baseModule.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lam/lib/baseModule.inc b/lam/lib/baseModule.inc index e0f8828f..55cffdef 100644 --- a/lam/lib/baseModule.inc +++ b/lam/lib/baseModule.inc @@ -88,6 +88,15 @@ class baseModule { */ function init($base) { $this->base = $base; + $this->attributes = array(); + $this->orig = array(); + // add object classes if needed + $this->attributes['objectClass'] = array(); + $this->orig['objectClass'] = array(); + $objectClasses = $this->getManagedObjectClasses(); + for ($i = 0; $i < sizeof($objectClasses); $i++) { + if (!in_array($objectClasses[$i], $this->attributes['objectClass'])) $this->attributes['objectClass'][] = $objectClasses[$i]; + } }