1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Description: gosa-core/include/functions.inc: The $initialAttrs array in change_password() contains the result of an LDAP fetch which contains the DN (and this is not an array), so skip that.
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/include/functions.inc
+++ b/include/functions.inc
@@ -2972,7 +2972,8 @@
// Prepare a special attribute list, which will be used for event hook calls
$attrsEvent = array();
foreach($initialAttrs as $name => $value){
- if(!is_numeric($name))
+ // $value can contain dn => <dn-string>, so skip that
+ if(!is_numeric($name) && is_array($value))
$attrsEvent[$name] = $value[0];
}
$attrsEvent['dn'] = $initialAttrs['dn'];
|