[svn r12323] Check if object context before using $this

skala
Yannick Warnier 18 years ago
parent 5d4956e84d
commit 38a56daed2
  1. 2
      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{

Loading…
Cancel
Save