diff options
author | Simon Rettberg | 2019-03-18 17:47:44 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-18 17:47:44 +0100 |
commit | 305cfee4bcf01ddf4d89d5b3ee19fc9100c7af25 (patch) | |
tree | e9f272ecc59f3ae153e8725a9e638399974254a8 /modules-available/locations | |
parent | [serversetup-bwlp-ipxe] Fix class access (diff) | |
download | slx-admin-305cfee4bcf01ddf4d89d5b3ee19fc9100c7af25.tar.gz slx-admin-305cfee4bcf01ddf4d89d5b3ee19fc9100c7af25.tar.xz slx-admin-305cfee4bcf01ddf4d89d5b3ee19fc9100c7af25.zip |
[locations] Fix division by zero
Diffstat (limited to 'modules-available/locations')
-rw-r--r-- | modules-available/locations/page.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
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), ); |