Glitch when the answer is "0"
-
This is a bit annoying to duplicate since it only comes up rarely, but it happened when I tried to test the plugin so I kept reloading the page until I got a question with 0 as the answer again. Both times the question was 10-10, and with 0 typed in as the answer, I get an error saying “This is a required field.” I’m guessing the 0 is processed as “false” for the field value…
Anyway since I’m new at this and not too sure of how the fields work and how to avoid that error, I changed the numbers used instead… Edited line 81 and 82 of bp-security-check.php so a is 11-50 and b is 1-10, and line 105 so the answer field is 1-60, and deleted the a > b check on lines 84-90 since it’s no longer necessary. It’s a bit more difficult now, but should avoid the 0 error, and I’m okay with that level of basic math competency as a requirement for blogging ;P
- The topic ‘Glitch when the answer is "0"’ is closed to new replies.