|
|
|
|
@ -62,6 +62,9 @@ function save_item($lp_id, $user_id, $view_id, $item_id, $score = -1, $max = -1, |
|
|
|
|
$lpobject = new learnpathItem($lp_id, $user_id, $courseId); |
|
|
|
|
} |
|
|
|
|
if (isset($lpobject)) { |
|
|
|
|
if (is_object($lpobject)) { |
|
|
|
|
$mylp = $lpobject; |
|
|
|
|
} else { |
|
|
|
|
$oLP = unserialize($lpobject); |
|
|
|
|
if ($debug) error_log("lpobject was set"); |
|
|
|
|
if (!is_object($oLP)) { |
|
|
|
|
@ -73,6 +76,7 @@ function save_item($lp_id, $user_id, $view_id, $item_id, $score = -1, $max = -1, |
|
|
|
|
$mylp = $oLP; |
|
|
|
|
if ($debug) error_log("Loading learnpath from unserialize"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
if ($debug) { |
|
|
|
|
error_log("lpobject was not set"); |
|
|
|
|
|