• Resolved Tii

    (@tii)


    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)
Viewing 1 replies (of 1 total)

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