mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 14:38:47 +02:00
#331 Import.php could not be run in HTTP mode (when PHP running in CGI mode)
SVN:trunk[973]
This commit is contained in:
@@ -45,8 +45,8 @@ class utils
|
||||
|
||||
public static function IsModeCLI()
|
||||
{
|
||||
global $argv;
|
||||
if (isset($argv))
|
||||
$sSAPIName = php_sapi_name();
|
||||
if ($sSAPIName == 'cli')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user