Exercice.class.php: Fixed intval in exercice id
This commit is contained in:
parent
2b88c05dd7
commit
812f87c22e
@ -135,12 +135,14 @@ class Exercice
|
|||||||
do
|
do
|
||||||
{
|
{
|
||||||
array_push($checked, $exo);
|
array_push($checked, $exo);
|
||||||
$res = $db->unique_query("SELECT `require` FROM exercices WHERE id = ".intval($exo));
|
$res = $db->unique_query("SELECT `require` FROM exercices WHERE id = ".$exo);
|
||||||
$exo = $res['require'];
|
$exo = $res['require'];
|
||||||
$ret++;
|
$ret++;
|
||||||
} while ($exo != "" && !in_array($exo, $checked));
|
} while ($exo != "" && !in_array($exo, $checked));
|
||||||
|
|
||||||
$this->number = $ret;
|
$this->number = $ret;
|
||||||
|
|
||||||
|
$db->deconnexion();
|
||||||
}
|
}
|
||||||
|
|
||||||
function update($create)
|
function update($create)
|
||||||
|
Loading…
Reference in New Issue
Block a user