Optimize exercice numbering
This commit is contained in:
parent
e6acdbd68a
commit
bbd82406f9
@ -178,7 +178,8 @@ class Exercice
|
||||
{
|
||||
if ($this->require == "")
|
||||
$this->number = 1;
|
||||
|
||||
else
|
||||
{
|
||||
$db = new BDD();
|
||||
|
||||
$exo = $this->id;
|
||||
@ -199,6 +200,7 @@ class Exercice
|
||||
|
||||
$db->deconnexion();
|
||||
}
|
||||
}
|
||||
|
||||
function update($create=false)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user