Quote:
Originally Posted by TriAxis
Well this helped quite a bit. I am getting this same situation.
Once I put your code in place only one "Notice: Undefined variable:" remained.
It is the one referencing this line.
Code:
if($act == "Arcade" || $autocom=="arcade") {
Otherwise this is the best fix so far for the notification at the top of the index file and the score posting page.
Any ideas about that one line?
Thank you for your efforts!
|
You're welcome :up:
I cant replicate that error on our test system, but changing the line to
PHP Code:
if((isset($act) && $act == "Arcade") || (isset($autocom) && $autocom=="arcade")) {
might do the trick
(I'm not sure if php processes the whole conditional (in which case it might fail) or if it just process the first part (in which case it should work).
Alternatively changing the 3 if statement before
PHP Code:
if(isset($_GET['act']))
{
$act = $_GET['act'];
}
if(isset($_GET['act']) && isset($_GET['autocom']))
{
$autocom = $_GET['autocom'];
}
if(isset($_GET['act']) && isset($_GET['showuser']))
{
$showuser= $_GET['showuser'];
}
to
PHP Code:
if(isset($_GET['act'])) {$act = $_GET['act'];} else {$act="";}
if(isset($_GET['act']) && isset($_GET['autocom'])) {$autocom = $_GET['autocom'];} else {$autocom="";}
if(isset($_GET['act']) && isset($_GET['showuser'])) {$showuser= $_GET['showuser'];} else {$showuser="";}