From c6e46d37bce3ed098bbc4dab0f84987482f9a639 Mon Sep 17 00:00:00 2001
From: Matteo Scaramuccia <moodle@matteoscaramuccia.com>
Date: Sun, 20 Mar 2011 23:54:39 +0100
Subject: [PATCH] MDL-26905 - Fixed missing of currentorg initialization in
 AICC API

---
 mod/scorm/datamodels/aicc.js.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mod/scorm/datamodels/aicc.js.php b/mod/scorm/datamodels/aicc.js.php
index 4bbe703b32c..ae308841e22 100644
--- a/mod/scorm/datamodels/aicc.js.php
+++ b/mod/scorm/datamodels/aicc.js.php
@@ -10,6 +10,9 @@
             }
         }
     }
+    if (!isset($currentorg)) {
+        $currentorg = '';
+    }
 ?>
 //
 // SCORM 1.2 API Implementation