diff --git a/public_html/admin/index.php b/public_html/admin/index.php index d07c4365d4bbefdff00c3315a2b34249a92540bd..e4725e4c868e8890487f1af32f8aa513f1704ace 100644 --- a/public_html/admin/index.php +++ b/public_html/admin/index.php @@ -37,7 +37,7 @@ if (!$oR->isEnabled()){ } else { $sUrl=(isset($_GET['url']) && $_GET['url']) ? $sUrl=$_GET['url'] : ''; - $sMyIp=gethostbyname(gethostname($_SERVER['SERVER_NAME'])); + $sMyIp=gethostbyname($_SERVER['SERVER_NAME']); if(!$sMyIp){ $sErrors.='<li>Ip address of current host ['.$_SERVER['SERVER_NAME'].'] was not found.</li>';