Browse Source

Email test: under IIS it was not detecting Windows correctly, and the help message was therefore completely wrong.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1511 a333f486-631f-4898-b8df-5754b55c2be0
romainq 13 năm trước cách đây
mục cha
commit
3ae0974b04
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      setup/email.test.php

+ 1 - 1
setup/email.test.php

@@ -51,7 +51,7 @@ function CheckEmailSetting($oP)
 		$sPhpIniFile = 'php.ini';
 	}
 
-	$bIsWindows = (array_key_exists('WINDIR', $_SERVER));
+	$bIsWindows = (array_key_exists('WINDIR', $_SERVER) || array_key_exists('windir', $_SERVER));
 	if ($bIsWindows)
 	{	
 		$sSmtpServer = ini_get('SMTP');