Skip to content
Snippets Groups Projects
Commit 8ccab87b authored by Aleksander Machniak's avatar Aleksander Machniak
Browse files

Fix OU change handling if provided OU attribute is an array

parent 0f464b8f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1249,8 +1249,8 @@ class Net_LDAP3
 
// This is me cheating. Remove this special attribute.
if (array_key_exists('ou', $old_attrs) || array_key_exists('ou', $new_attrs)) {
$old_ou = $old_attrs['ou'];
$new_ou = $new_attrs['ou'];
$old_ou = is_array($old_attrs['ou']) ? array_shift($old_attrs['ou']) : $old_attrs['ou'];
$new_ou = is_array($new_attrs['ou']) ? array_shift($new_attrs['ou']) : $new_attrs['ou'];
unset($old_attrs['ou']);
unset($new_attrs['ou']);
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment