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"]);