diff --git a/views/bootstrap/class.Info.php b/views/bootstrap/class.Info.php
index 159191d37..00fc09015 100644
--- a/views/bootstrap/class.Info.php
+++ b/views/bootstrap/class.Info.php
@@ -82,17 +82,16 @@ class SeedDMS_View_Info extends SeedDMS_Theme_Style {
echo "
| ".getMLText('browser_info_os')." | ".$result->os->toString()." |
\n";
echo "\n\n";
- $result = \Seeddms\Seeddms\Utilities::geoip('194.230.161.18');
- $this->contentHeading(getMLText("geo_info"));
- echo "\n";
-// echo "\n\n";
-// echo "| ".getMLText("name")." | | \n";
-// echo "
\n\n";
- echo "\n";
- foreach (['ip', 'isp', 'org', 'city', 'country_code', 'timezone_name'] as $i) {
- echo "| ".getMLText('geo_info_'.$i)." | ".$result[$i]." |
\n";
+ $result = \Seeddms\Seeddms\Utilities::geoip($_SERVER['REMOTE_ADDR']);
+ if ($result) {
+ $this->contentHeading(getMLText("geo_info"));
+ echo "\n";
+ echo "\n";
+ foreach (['ip', 'isp', 'org', 'city', 'country_code', 'timezone_name'] as $i) {
+ echo "| ".getMLText('geo_info_'.$i)." | ".$result[$i]." |
\n";
+ }
+ echo "\n
\n";
}
- echo "\n
\n";
if($user->isAdmin()) {
$this->contentHeading(getMLText("extension_info"));