MDL-11137 Unable to locate API error - fix typo on var name - thank dan.
authorpiers <piers>
Thu, 24 Jul 2008 23:53:56 +0000 (23:53 +0000)
committerpiers <piers>
Thu, 24 Jul 2008 23:53:56 +0000 (23:53 +0000)
mod/scorm/locallib.php

index f28e28a..4bd4c3f 100755 (executable)
@@ -279,7 +279,7 @@ function scorm_get_tracks($scoid,$userid,$attempt='') {
                 $usertrack->timemodified = $track->timemodified;
             }       
         }
-        ksort($userdata);
+        ksort($usertrack);
         return $usertrack;
     } else {
         return false;