Zend Framework

getDateTimeAttribute Null Check

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.10.2
  • Fix Version/s: 1.10.3
  • Component/s: Zend_Ldap
  • Labels:
    None

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.

Activity

Hide
Stefan Gehrig added a comment -

fixed in trunk (r21531) and in 1.10-release branch (r21532)

Show
Stefan Gehrig added a comment - fixed in trunk (r21531) and in 1.10-release branch (r21532)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: