From 305cfee4bcf01ddf4d89d5b3ee19fc9100c7af25 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 18 Mar 2019 17:47:44 +0100 Subject: [locations] Fix division by zero --- modules-available/locations/page.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/locations/page.inc.php') diff --git a/modules-available/locations/page.inc.php b/modules-available/locations/page.inc.php index b1958cea..d20c6068 100644 --- a/modules-available/locations/page.inc.php +++ b/modules-available/locations/page.inc.php @@ -498,7 +498,7 @@ class Page_Locations extends Page 'haveOverlapSelf' => !empty($overlapSelf), 'haveOverlapOther' => !empty($overlapOther), 'unassignedCount' => $unassigned, - 'unassignedLoad' => round(($unassignedLoad / $unassigned) * 100) . ' %', + 'unassignedLoad' => ($unassigned ? (round(($unassignedLoad / $unassigned) * 100) . ' %') : ''), 'defaultConfig' => $defaultConfig, 'addAllowedList' => array_values($addAllowedList), ); -- cgit v1.2.3-55-g7522