Added a check for the "active" LDAP flag. Since this field is optional, it's important to check whether or not it's set, otherwise, the functionality will be unusable.

This commit is contained in:
Aladin Alaily
2015-08-15 00:27:56 -04:00
parent b8ef6dfba4
commit 3dfbd8a4f0

View File

@@ -1112,7 +1112,7 @@ class UsersController extends AdminController {
$summary = array();
for ($i = 0; $i < $results["count"]; $i++) {
if ($results[$i][$ldap_result_active_flag][0] == "TRUE") {
if (empty($ldap_result_active_flag) || $results[$i][$ldap_result_active_flag][0] == "TRUE") {
$item = array();
$item["username"] = isset( $results[$i][$ldap_result_username][0] ) ? $results[$i][$ldap_result_username][0] : "";