Removing & unserialize that fires PHP warnings

skala
Julio Montoya 13 years ago
parent 505d783226
commit d27bca7d25
  1. 2
      main/newscorm/lp_ajax_initialize.php
  2. 2
      main/newscorm/lp_ajax_last_update_status.php
  3. 2
      main/newscorm/lp_ajax_save_item.php
  4. 2
      main/newscorm/lp_ajax_save_objectives.php
  5. 2
      main/newscorm/lp_ajax_switch_item.php
  6. 2
      main/newscorm/lp_ajax_switch_item_toc.php
  7. 6
      main/newscorm/lp_comm.server.php
  8. 2
      main/newscorm/scorm.class.php

@ -48,7 +48,7 @@ function initialize_item($lp_id, $user_id, $view_id, $next_item) {
$mylp = '';
if (isset($_SESSION['lpobject'])) {
if ($debug > 1) { error_log('////$_SESSION[lpobject] is set', 0); }
$oLP =& unserialize($_SESSION['lpobject']);
$oLP = unserialize($_SESSION['lpobject']);
if (!is_object($oLP)) {
if ($debug > 1) { error_log(print_r($oLP,true), 0); }
if ($debug > 2) { error_log('////Building new lp', 0); }

@ -52,7 +52,7 @@ function last_update_status($lp_id, $user_id, $view_id, $item_id) {
$mylp = '';
if (isset($_SESSION['lpobject'])) {
if ($debug > 1) { error_log('////$_SESSION[lpobject] is set', 0); }
$oLP =& unserialize($_SESSION['lpobject']);
$oLP = unserialize($_SESSION['lpobject']);
if (!is_object($oLP)) {
if ($debug > 2) { error_log(print_r($oLP, true), 0); }
if ($debug > 2) { error_log('////Building new lp', 0); }

@ -50,7 +50,7 @@ function save_item($lp_id, $user_id, $view_id, $item_id, $score = -1, $max = -1,
$mylp = '';
if (isset($_SESSION['lpobject'])) {
if ($debug > 1) { error_log('////$_SESSION[lpobject] is set', 0); }
$oLP =& unserialize($_SESSION['lpobject']);
$oLP = unserialize($_SESSION['lpobject']);
if (!is_object($oLP)) {
if ($debug > 2) { error_log(print_r($oLP,true), 0); }
if ($debug > 2) { error_log('////Building new lp', 0); }

@ -41,7 +41,7 @@ function save_objectives($lp_id, $user_id, $view_id, $item_id, $objectives = arr
$mylp = '';
if (isset($_SESSION['lpobject'])) {
if ($debug > 1) { error_log('////$_SESSION[lpobject] is set', 0); }
$oLP =& unserialize($_SESSION['lpobject']);
$oLP =unserialize($_SESSION['lpobject']);
if (!is_object($oLP)) {
if ($debug > 2) { error_log(print_r($oLP,true), 0); }
if ($debug > 2) { error_log('////Building new lp', 0); }

@ -48,7 +48,7 @@ function switch_item_details($lp_id, $user_id, $view_id, $current_item, $next_it
$mylp = '';
if (isset($_SESSION['lpobject'])) {
if ($debug > 1) { error_log('////$_SESSION[lpobject] is set', 0); }
$oLP =& unserialize($_SESSION['lpobject']);
$oLP = unserialize($_SESSION['lpobject']);
if (!is_object($oLP)) {
if ($debug > 1) { error_log(print_r($oLP,true), 0); }
if ($debug > 2) { error_log('////Building new lp', 0); }

@ -39,7 +39,7 @@ function switch_item_toc($lp_id, $user_id, $view_id, $current_item, $next_item)
$mylp = '';
if (isset($_SESSION['lpobject'])) {
if ($debug > 1) { error_log('////$_SESSION[lpobject] is set', 0); }
$oLP =& unserialize($_SESSION['lpobject']);
$oLP = unserialize($_SESSION['lpobject']);
if (!is_object($oLP)) {
if ($debug > 1) { error_log(print_r($oLP, true), 0); }
if ($debug > 2) { error_log('////Building new lp', 0); }

@ -76,7 +76,7 @@ function save_item($lp_id, $user_id, $view_id, $item_id, $score = -1, $max = -1,
$mylp = '';
if (isset($_SESSION['lpobject'])) {
if ($debug > 1) { error_log('////$_SESSION[lpobject] is set', 0); }
$oLP =& unserialize($_SESSION['lpobject']);
$oLP = unserialize($_SESSION['lpobject']);
if (!is_object($oLP)) {
if ($debug > 2) { error_log(print_r($oLP, true), 0); }
if ($debug > 2) { error_log('////Building new lp', 0); }
@ -208,7 +208,7 @@ function save_objectives($lp_id, $user_id, $view_id, $item_id, $objectives = arr
$mylp = '';
if (isset($_SESSION['lpobject'])) {
if ($debug > 1) { error_log('////$_SESSION[lpobject] is set', 0); }
$oLP =& unserialize($_SESSION['lpobject']);
$oLP = unserialize($_SESSION['lpobject']);
if (!is_object($oLP)) {
if ($debug > 2) { error_log(print_r($oLP, true), 0); }
if ($debug > 2) { error_log('////Building new lp', 0); }
@ -262,7 +262,7 @@ function switch_item_details($lp_id, $user_id, $view_id, $current_item, $next_it
$mylp = '';
if (isset($_SESSION['lpobject'])) {
if ($debug > 1) { error_log('////$_SESSION[lpobject] is set', 0); }
$oLP =& unserialize($_SESSION['lpobject']);
$oLP = unserialize($_SESSION['lpobject']);
if (!is_object($oLP)) {
if ($debug > 1) { error_log(print_r($oLP, true), 0); }
if ($debug > 2) { error_log('////Building new lp', 0); }

@ -33,7 +33,7 @@ class scorm extends learnpath {
public $zipname = ''; // Keeps the zipfile safe for the object's life so that we can use it if no title avail.
public $lastzipnameindex = 0; // Keeps an index of the number of uses of the zipname so far.
public $manifest_encoding = 'UTF-8';
public $debug = 5;
public $debug = false;
/**
* Class constructor. Based on the parent constructor.

Loading…
Cancel
Save