From 848b0d3942369d5e7711fc0b7652579805d65098 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Sep 2008 22:39:12 +0000 Subject: [PATCH] Improved register_globals --- pages/account/53.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/account/53.php b/pages/account/53.php index 69f8b19..b533ddc 100644 --- a/pages/account/53.php +++ b/pages/account/53.php @@ -69,7 +69,7 @@ } echo "\n\n\n\n\n
\n"; - } elseif(intval($_REQUEST['locid']) <= 0) { + } elseif(intval(array_key_exists('locid',$_REQUEST)?$_REQUEST['locid']:0) <= 0) { echo "\n\n\n\n\n
\n"; + $st="";$prev="";$end="";$next=""; $rc = mysql_num_rows(mysql_query("select * from `locations` where `regid`='$regid'")); if($start > 0) {