Skip to content

Commit

Permalink
Internal: Ensure numeric value $rowi is what is as expected in exerci…
Browse files Browse the repository at this point in the history
…se.php
  • Loading branch information
ywarnier committed Apr 11, 2018
1 parent a1666c7 commit a7d41d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/exercise/exercise.php
Expand Up @@ -737,7 +737,7 @@
$sql = "SELECT count(*) count FROM $TBL_EXERCISE_QUESTION
WHERE c_id = $courseId AND exercice_id = $my_exercise_id";
$sqlresult = Database::query($sql);
$rowi = Database :: result($sqlresult, 0, 0);
$rowi = intval(Database :: result($sqlresult, 0, 0));

if ($session_id == $row['session_id']) {
// Questions list
Expand Down

0 comments on commit a7d41d3

Please sign in to comment.