From 2e48c9076179ca7693e8c1fbc820e51e9b5c8229 Mon Sep 17 00:00:00 2001 From: Li Chen Date: Fri, 8 Nov 2013 20:57:47 +0100 Subject: [PATCH] is_unlock: the first exo is always unlocked --- onyx/include/common/Exercice.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/onyx/include/common/Exercice.class.php b/onyx/include/common/Exercice.class.php index 99a1774f..ba648405 100644 --- a/onyx/include/common/Exercice.class.php +++ b/onyx/include/common/Exercice.class.php @@ -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