Miss base_dir in GetServerType() will cause Web Server Type is "A"

-fixed
This commit is contained in:
Martin Konecny 2013-03-12 17:00:52 -04:00
parent 661a407f72
commit c563aaf608
1 changed files with 4 additions and 1 deletions

View File

@ -101,8 +101,11 @@ class AirtimeCheck {
if (!isset($headerInfo['Server'][0]))
return self::UNKNOWN;
else
else if (is_array($headerInfo['Server'])) {
return $headerInfo['Server'][0];
} else {
return $headerInfo['Server'];
}
}
public static function GetStatus($p_baseUrl, $p_basePort, $p_baseDir, $p_apiKey){