Skip to content

Commit

Permalink
Merge pull request #214 from nobuhiko/fix#156-2
Browse files Browse the repository at this point in the history
fix #156 nan円への対応
  • Loading branch information
kiy0taka authored Aug 16, 2018
2 parents 7f048c3 + f3e5309 commit 129c9ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/class/pages/admin/total/LC_Page_Admin_Total.php
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,9 @@ public function lfAddTotalLine($arrResults)
}
// 平均値の計算
$arrTotal['total_average'] = $arrTotal['total'] / $arrTotal['total_order'];
if (is_nan($arrTotal['total_average'])) {
$arrTotal['total_average'] = 0;
}
$arrResults[] = $arrTotal;
}

Expand Down

0 comments on commit 129c9ea

Please sign in to comment.