From 0abbc55c490659588c9dac61ec00faeda8ea1b5f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 31 Aug 2007 06:49:17 +0000 Subject: [PATCH] fixed bug reported on the user list: Warning wrong data type in line 184, added ldap extension check as it seems for many a surprise that ldap/ads auth needs it ;-) --- setup/check_install.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup/check_install.php b/setup/check_install.php index b93be4b53e..a08228b4ee 100644 --- a/setup/check_install.php +++ b/setup/check_install.php @@ -142,6 +142,10 @@ 'func' => 'extension_check', 'warning' => lang('The session extension is needed to use php sessions (db-sessions work without).') ), + 'ldap' => array( + 'func' => 'extension_check', + 'warning' => lang("The ldap extension is needed, if you use ldap as account or contact storage, authenticate against ldap or active directory. It's not needed for a standard SQL installation."), + ), '.' => array( 'func' => 'permission_check', 'is_world_writable' => False, @@ -181,6 +185,7 @@ $checks[$name]['from'] = array($checks[$name]['from']); } if (!isset($data['from'])) $data['from'] = $app; + if (!isset($checks[$name]['from']) || !is_array($checks[$name]['from'])) $checks[$name]['from'] = array(); if (!in_array($data['from'],$checks[$name]['from'])) $checks[$name]['from'][] = $data['from']; } else