Optimize exercice numbering

This commit is contained in:
nemunaire 2014-11-20 21:56:37 +01:00
parent e6acdbd68a
commit bbd82406f9

View File

@ -178,7 +178,8 @@ class Exercice
{ {
if ($this->require == "") if ($this->require == "")
$this->number = 1; $this->number = 1;
else
{
$db = new BDD(); $db = new BDD();
$exo = $this->id; $exo = $this->id;
@ -199,6 +200,7 @@ class Exercice
$db->deconnexion(); $db->deconnexion();
} }
}
function update($create=false) function update($create=false)
{ {