]> _ Git - fluidbook-toolbox.git/commitdiff
wait #4952 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Aug 2022 08:42:47 +0000 (10:42 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Aug 2022 08:42:47 +0000 (10:42 +0200)
app/Models/Traits/SCORMVersionTrait.php

index 4c1f60311feb291b433ec5070cbefeca7447647f..5867f4b30991ffe5b3570f2aefeaa8208f79e743 100644 (file)
@@ -6,7 +6,7 @@ trait SCORMVersionTrait
 {
     public function getSCORMVersion()
     {
-        if ((property_exists($this, 'scorm_enable') && !$this->scorm_enable) || !$this->scorm_version) {
+        if ((isset($this->scorm_enable) && !$this->scorm_enable) || !$this->scorm_version) {
             return '-';
         }
         $map = ['1.2' => '1.2', '2004' => '2004', '2004.3' => '2004 <sup>3rd ed.</sup>'];