diff --git a/config/safetyquestions.php b/config/safetyquestions.php index b4bf79d..5001ef4 100644 --- a/config/safetyquestions.php +++ b/config/safetyquestions.php @@ -31,6 +31,9 @@ { if($_POST['question']) { + if(!ereg("^[0-9]*$",$_POST['ord'])) + echo notice(i18n("Defaulting non-numeric order value %1 to 0",array($_POST['ord']))); + mysql_query("UPDATE safetyquestions SET question='".mysql_escape_string(stripslashes($_POST['question']))."', `type`='".mysql_escape_string(stripslashes($_POST['type']))."', @@ -137,10 +140,12 @@ echo "
".i18n("Question")." | ".i18n("Type")." | ".i18n("Required")." | ".i18n("Actions")." | |
---|---|---|---|---|
".i18n("Ord")." | ".i18n("Question")." | ".i18n("Type")." | ".i18n("Required")." | ".i18n("Actions")." |
$r->question | "; + echo "||||
$r->ord | "; + echo "$r->question | "; echo "$r->type | "; echo "$r->required | "; echo ""; |