cRPG
Strategus => Strategus Issues => Topic started by: Brightness on July 27, 2012, 07:14:15 pm
-
Basically I decided to press logout in CRPG and then refresh the Strategus page and received this,
Notice: Undefined index: username in /var/www/crpg/webcrpg/strategus/news.php on line 19
Notice: Undefined index: password in /var/www/crpg/webcrpg/strategus/news.php on line 19
Of course it isn't something dangerous just un defined variables which is an easy fix using if(!isset(variablename))
but I guess it would a lot nicer if you would add an notice that your not logged in :) (Noob safe)
(My Opinion).
-
if (!isset(variablename)) { echo "<p>Please try logging in again <b>{$_REQUEST["username"]}"; </b></p>. }
Imo feels better :mrgreen:
-
True feel safe like that D: