mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Added an exit for the LDAP disabled sync short-circuit
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
1432403c9f
commit
0cfeab8c50
|
@ -48,6 +48,7 @@ class LdapSync extends Command
|
||||||
// If LDAP enabled isn't set to 1 (ldap_enabled!=1) then we should cut this short immediately without going any further
|
// If LDAP enabled isn't set to 1 (ldap_enabled!=1) then we should cut this short immediately without going any further
|
||||||
if (Setting::getSettings()->ldap_enabled!='1') {
|
if (Setting::getSettings()->ldap_enabled!='1') {
|
||||||
$this->error('LDAP is not enabled. Aborting. See Settings > LDAP to enable it.');
|
$this->error('LDAP is not enabled. Aborting. See Settings > LDAP to enable it.');
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
ini_set('max_execution_time', env('LDAP_TIME_LIM', 600)); //600 seconds = 10 minutes
|
ini_set('max_execution_time', env('LDAP_TIME_LIM', 600)); //600 seconds = 10 minutes
|
||||||
|
|
Loading…
Reference in a new issue