|
|
|
|
@ -753,7 +753,7 @@ class learnpathItem |
|
|
|
|
*/ |
|
|
|
|
public function get_max() |
|
|
|
|
{ |
|
|
|
|
if ($this->type == 'sco') { |
|
|
|
|
if ($this->type === 'sco') { |
|
|
|
|
if (isset($this->view_max_score) && |
|
|
|
|
!empty($this->view_max_score) && |
|
|
|
|
$this->view_max_score > 0 |
|
|
|
|
@ -766,16 +766,16 @@ class learnpathItem |
|
|
|
|
} else { |
|
|
|
|
if (!empty($this->max_score)) { |
|
|
|
|
return $this->max_score; |
|
|
|
|
} else { |
|
|
|
|
return 100; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return 100; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
if (!empty($this->max_score)) { |
|
|
|
|
return $this->max_score; |
|
|
|
|
} else { |
|
|
|
|
return 100; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return 100; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|