summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-18 17:47:44 +0100
committerSimon Rettberg2019-03-18 17:47:44 +0100
commit305cfee4bcf01ddf4d89d5b3ee19fc9100c7af25 (patch)
treee9f272ecc59f3ae153e8725a9e638399974254a8 /modules-available/locations/page.inc.php
parent[serversetup-bwlp-ipxe] Fix class access (diff)
downloadslx-admin-305cfee4bcf01ddf4d89d5b3ee19fc9100c7af25.tar.gz
slx-admin-305cfee4bcf01ddf4d89d5b3ee19fc9100c7af25.tar.xz
slx-admin-305cfee4bcf01ddf4d89d5b3ee19fc9100c7af25.zip
[locations] Fix division by zero
Diffstat (limited to 'modules-available/locations/page.inc.php')
-rw-r--r--modules-available/locations/page.inc.php2
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),
);