mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
#331 Import.php could not be run in HTTP mode (when PHP running in CGI mode) - fix getting more bullet proof
SVN:trunk[974]
This commit is contained in:
@@ -46,7 +46,8 @@ class utils
|
||||
public static function IsModeCLI()
|
||||
{
|
||||
$sSAPIName = php_sapi_name();
|
||||
if ($sSAPIName == 'cli')
|
||||
$sCleanName = strtolower(trim($sSAPIName));
|
||||
if ($sCleanName == 'cli')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user