ソースを参照

#331 Import.php could not be run in HTTP mode (when PHP running in CGI mode)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@973 a333f486-631f-4898-b8df-5754b55c2be0
romainq 14 年 前
コミット
fc606a32fb
1 ファイル変更2 行追加2 行削除
  1. 2 2
      application/utils.inc.php

+ 2 - 2
application/utils.inc.php

@@ -45,8 +45,8 @@ class utils
 
 	public static function IsModeCLI()
 	{
-		global $argv;
-		if (isset($argv))
+		$sSAPIName = php_sapi_name();
+		if ($sSAPIName == 'cli')
 		{
 			return true;
 		}