From 38a56daed2571e0ad24581dca4bee3f1aa206966 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 7 May 2007 22:03:39 +0200 Subject: [PATCH] [svn r12323] Check if object context before using $this --- main/newscorm/learnpathItem.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/newscorm/learnpathItem.class.php b/main/newscorm/learnpathItem.class.php index ec3569fcba..ec94661916 100644 --- a/main/newscorm/learnpathItem.class.php +++ b/main/newscorm/learnpathItem.class.php @@ -719,7 +719,7 @@ class learnpathItem{ //if($this->debug>0){error_log('New LP - In learnpathItem::get_scorm_time()',0);} $h = get_lang('h'); if(!isset($given_time)){ - if(!empty($this->current_start_time)){ + if(!empty($this->current_start_time) && is_object($this)){ if(!empty($this->current_stop_time)){ $time = $this->current_stop_time - $this->current_start_time; }else{