Title: 2 Bugs
Last modified: August 24, 2017

---

# 2 Bugs

 *  Resolved [Tii](https://wordpress.org/support/users/tii/)
 * (@tii)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/2-bugs-5/)
 * I found 2 really bad bugs in your plugin I had to fix in order to make it work!
 * in result.php, on line 62, your system compare strings with <= here is my fix:
 *     ```
       $points = floatval($points);
       foreach($results as $result) {
         if(floatval($result->points_bottom) <= $points 
            and $points <= floatval($result->points_top)) 
                return $result;
       }
       ```
   
 * in quizzes.php on line 193, you cast the value into an int and it should be a
   float :
 * $points += floatval($_POST[‘points’]);

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bob](https://wordpress.org/support/users/prasunsen/)
 * (@prasunsen)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/2-bugs-5/#post-9440322)
 * Thanks, I have applied your fixes.

Viewing 1 replies (of 1 total)

The topic ‘2 Bugs’ is closed to new replies.

 * ![](https://ps.w.org/chained-quiz/assets/icon-128x128.png?rev=2370337)
 * [Chained Quiz](https://wordpress.org/plugins/chained-quiz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/chained-quiz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/chained-quiz/)
 * [Active Topics](https://wordpress.org/support/plugin/chained-quiz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/chained-quiz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/chained-quiz/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bob](https://wordpress.org/support/users/prasunsen/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/2-bugs-5/#post-9440322)
 * Status: resolved