add object class if not existing

This commit is contained in:
Roland Gruber 2004-12-28 12:06:50 +00:00
parent 2201198837
commit a631f759e5
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ class ieee802Device extends baseModule {
$this->attributes['macAddress'] = $attr['macAddress'];
$this->orig['macAddress'] = $attr['macAddress'];
}
// add object class if needed
if (! in_array('ieee802Device', $this->orig['objectClass'])) {
$this->attributes['objectClass'][] = 'ieee802Device';
}
return 0;
}