RiperFr / Security-ActiveDirectoryBundle

This is a bundle to allow authentication into symfony >=2.1 by an Active directory
16 stars 7 forks source link

Empty group blowout fix. #3

Closed vedosis closed 11 years ago

vedosis commented 11 years ago

The last element of $group was returning a bool(false) element and throwing an exception:

Notice: Undefined offset: 0 in vendor/ztec/security-active_directory/Ztec/Security/ActiveDirectoryBundle/Security/User/adUserProvider.php line 113 500 Internal Server Error - ErrorException

This occurred on on all 2008R2 machines I had access to test on and across several different domains. Added a quick check to see if the Boolean is false.

ztec commented 11 years ago

Thanks a lot