ZF-9438: getDateTimeAttribute Null Check
Description
I'm creating a ActiveDirectory extension to the LDAP classes and noticed this bug. In the Zend_Ldap_Attribute class there is a method getDateTimeAttribute(). If the value returned by getAttribute() is an array it should work fine but if it's a single value (specified by the index) then the method doesn't check if _valueFromLdapDateTime() returned null.
Basically, just need to add a check for "non" array attributes that if valueFromLdapDateTime() returns null to return the _original value and not null.
Comments
Posted by Stefan Gehrig (sgehrig) on 2010-03-17T05:18:33.000+0000
fixed in trunk (r21531) and in 1.10-release branch (r21532)