alecpl
2012-01-18 08b7b66e7615acdb08ce7940c4ad18f85aab40f2
- Handle ldap_public misconfiguration


1 files modified
7 ■■■■ changed files
program/include/rcmail.php 7 ●●●● patch | view | raw | blame | history
program/include/rcmail.php
@@ -489,7 +489,11 @@
    if ($ldap_config) {
      $ldap_config = (array) $ldap_config;
      foreach ($ldap_config as $id => $prop)
      foreach ($ldap_config as $id => $prop) {
        // handle misconfiguration
        if (empty($prop) || !is_array($prop)) {
          continue;
        }
        $list[$id] = array(
          'id'       => $id,
          'name'     => $prop['name'],
@@ -498,6 +502,7 @@
          'hidden'   => $prop['hidden'],
          'autocomplete' => in_array($id, $autocomplete)
        );
      }
    }
    $plugin = $this->plugins->exec_hook('addressbooks_list', array('sources' => $list));