is_unlock: the first exo is always unlocked

This commit is contained in:
Li Chen 2013-11-08 20:57:47 +01:00
parent 327781e996
commit 2e48c90761

View File

@ -93,6 +93,9 @@ class Exercice
function is_unlocked($team)
{
if ($this->require == "")
return 1;
$db = new BDD();
$res = $db->unique_query("SELECT `id` FROM solved