Texan78 Posted November 24, 2014 Share Posted November 24, 2014 Hello, forgive me for this question in advance. I have looked all day for a fix to this and nothing I have come across has resolved this. My host upgraded to the most recent PHP several months ago and since it has thrown errors on certain scripts. I have gotten tired of looking at them and haven't been able to find a fix on my own so here I am. I am getting the below error. Notice: Undefined index: mode in /home4/mesquiu0/public_html/NSDisplay/NSStorms-include.php on line 38 if ($_REQUEST['mode'] == 'expired') { // We only want the expired storms $filetoRead = $expiredfile; $arraytoUse = $Expired; } else { $filetoRead = $stormfile; $arraytoUse = $Active; } I am pretty sure it needs an inset call but not sure how to go about formatting that as I have done with the others errors I have come across. Any suggestions to this error? -Thanks! Quote Link to comment Share on other sites More sharing options...
Solution Texan78 Posted November 24, 2014 Author Solution Share Posted November 24, 2014 (edited) Disregard, I am an idiot and got it sorted. Changed this.... if ($_REQUEST['mode'] == 'expired') To this.... if (isset($_REQUEST['mode']) == 'expired') Errors are now resolved. Guess I was having a brain fart and was putting the closing ) in the wrong place. Sorry for the question. Edited November 24, 2014 by Texan78 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.