From d5fedfa4a38aabf7c72052a6c07faff54bc48c98 Mon Sep 17 00:00:00 2001 From: csantossaenz Date: Thu, 8 Mar 2007 09:42:50 +0000 Subject: [PATCH] Fixed MDL-8600 SQL Error with Postgres 7.4.16 --- mod/scorm/player.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mod/scorm/player.php b/mod/scorm/player.php index d3918ab864d..41317e4cbec 100755 --- a/mod/scorm/player.php +++ b/mod/scorm/player.php @@ -14,6 +14,15 @@ $mode = optional_param('mode', 'normal', PARAM_ALPHA); // navigation mode $currentorg = optional_param('currentorg', '', PARAM_RAW); // selected organization $newattempt = optional_param('newattempt', 'off', PARAM_ALPHA); // the user request to start a new attempt + echo 'SCOID'.$scoid; + $scoid=$_GET['scoid']; + + echo 'SCOID'.$scoid; + //$scoid=$_POST['scoid']; + //echo 'SCOID'.$scoid; + if ($sco1 = get_record("scorm_scoes", "id", $scoid,"parent",'/')) { + $scoid++; + } if (!empty($id)) { if (! $cm = get_coursemodule_from_id('scorm', $id)) {