summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/menus
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2017-10-17 08:24:00 +0000
committeririna <irinagomez@us.es>2017-10-17 08:24:00 +0000
commita06dbacd08a0c9dbd98b3110a728f7b1e24b07f7 (patch)
treee9dcc897051bf20f047c2c5c1deef7cdf1eb95ad /admin/WebConsole/menus
parent3ba7cc1e173f8cedd9e4eeef1c1d047bc588ebd6 (diff)
#792 menuejemplo.php Se resuelve errata que afecta cuando la variable HTTP_X_FORWARDED_FOR no existe
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5466 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/menus')
-rw-r--r--admin/WebConsole/menus/menuejemplo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/menus/menuejemplo.php b/admin/WebConsole/menus/menuejemplo.php
index 199b1b8c..b3fcd175 100644
--- a/admin/WebConsole/menus/menuejemplo.php
+++ b/admin/WebConsole/menus/menuejemplo.php
@@ -84,7 +84,7 @@
</dl>
<?php // Acceso a menĂº privado.
-if ($_SERVER['HTTP_X_FORWARDED_FOR']) {
+if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];