fix fatal error if sambaadmin is not installed, but was before

This commit is contained in:
Ralf Becker 2017-07-12 18:28:10 +02:00
parent 8fe467157d
commit 9eb877eb3b

View File

@ -1199,7 +1199,8 @@ class Ldap
$this->frontend->exists(-1 * $sign * $account_id) || $this->frontend->exists(-1 * $sign * $account_id) ||
// if sambaadmin is installed, call it to check there's not yet a relative id (last part of SID) with that number // if sambaadmin is installed, call it to check there's not yet a relative id (last part of SID) with that number
// to ease migration to AD or Samba4 // to ease migration to AD or Samba4
$GLOBALS['egw_info']['apps']['sambaadmin'] && ExecMethod2('sambaadmin.sosambaadmin.sidExists', $account_id))); file_exists(EGW_SERVER_ROOT.'/sambaadmin') && $GLOBALS['egw_info']['apps']['sambaadmin'] &&
ExecMethod2('sambaadmin.sosambaadmin.sidExists', $account_id)));
if (!$account_id || $max && $account_id > $max) if (!$account_id || $max && $account_id > $max)
{ {