Skip to content
Permalink
Browse files

Fixed fatal error

  • Loading branch information...
GodMod committed Feb 5, 2019
1 parent c9c936d commit e1fe6e37d736237195b477226f70a44eade623ad
@@ -85,6 +85,7 @@ public function calculate_effective_dkp($member_id, $multidkp_id, $time_period,
$adjustment = $this->pdh->get('points', 'adjustment', array($member_id, $multidkp_id, 0, $with_twink));
$spent = $this->pdh->get('points', 'spent', array($member_id, $multidkp_id, 0, 0, $with_twink));
$attendance = $this->pdh->get('member_attendance', 'attendance', array($member_id, $multidkp_id, $time_period, $with_twink));
return ($earned+$adjustment-$spent)*$attendance;
}
@@ -103,7 +104,7 @@ public function get_caption_effective_dkp($mdkp_id, $time_period){
return sprintf($this->pdh->get_lang('effective_dkp', 'effective_dkp'), $time_period);
}
public function get_html_caption_effective_dkp($mdkpid, $time_period, $showname, $showtooltip){
public function get_html_caption_effective_dkp($mdkpid, $time_period, $showname=false, $showtooltip=false){
if($showname){
$text = $this->pdh->get('multidkp', 'name', array($mdkpid))."($time_period)";
}else{

0 comments on commit e1fe6e3

Please sign in to comment.
You can’t perform that action at this time.