* Univention: fix setup configuration does not allow to store Univention as account backend

This commit is contained in:
Ralf Becker 2017-08-25 09:00:46 +02:00
parent a89ccaa455
commit 6cdcdf8180

View File

@ -492,7 +492,7 @@ class setup_cmd_config extends setup_cmd
foreach(scandir(EGW_INCLUDE_ROOT.'/api/src/Accounts') as $file)
{
$matches = null;
if (preg_match('/^([a-z0-9]+)\.php$/', $file, $matches) &&
if (preg_match('/^([a-z0-9]+)\.php$/i', $file, $matches) &&
!isset($account_repositories[strtolower($matches[1])]) &&
class_exists($class='EGroupware\\Api\\Accounts\\'.$matches[1]) &&
(strtolower($matches[1]) == $current || !is_callable($callable=$class.'::available') || call_user_func($callable)))