From 35cfacf5c9268a48299848a2f87081403a8993c4 Mon Sep 17 00:00:00 2001 From: nahmad Date: Fri, 17 Apr 2015 12:02:44 +0200 Subject: [PATCH] Fixed check for test-setting: allowedUsersEnabled --- Modules/Test/classes/class.ilObjTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Test/classes/class.ilObjTest.php b/Modules/Test/classes/class.ilObjTest.php index ba1ed029cd71..25e7709b72bc 100755 --- a/Modules/Test/classes/class.ilObjTest.php +++ b/Modules/Test/classes/class.ilObjTest.php @@ -6023,7 +6023,7 @@ public function fromXML(ilQTIAssessment $assessment) break; case "allowedUsers": $this->setAllowedUsers($metadata["entry"]); - $this->setLimitUsersEnabled(strlen($metadata["entry"]) > 0); + $this->setLimitUsersEnabled((int)$metadata["entry"] > 0); break; case "allowedUsersTimeGap": $this->setAllowedUsersTimeGap($metadata["entry"]);