#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:
Romain Quetiez
2010-11-25 09:52:22 +00:00
parent a60709a354
commit ebf9910579

View File

@@ -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;
}