Skip to content

Commit

Permalink
fix #156 nan円への対応
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuhiko committed Aug 16, 2018
1 parent 8d71efa commit f3e5309
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 f3e5309

Please sign in to comment.