mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-23 02:19:07 +01:00
LScli :: handle_args() : check CLI context
This commit is contained in:
parent
4bed3e6c17
commit
9028414568
1 changed files with 4 additions and 0 deletions
|
@ -113,6 +113,10 @@ class LScli {
|
|||
* @retval void
|
||||
**/
|
||||
public static function handle_args() {
|
||||
if (php_sapi_name() != "cli") {
|
||||
LSlog :: fatal('Try to use LScli :: handle_args() in non-CLI context.');
|
||||
return;
|
||||
}
|
||||
global $argv;
|
||||
$log_level = 'INFO';
|
||||
$ldap_server_id = false;
|
||||
|
|
Loading…
Reference in a new issue