diff options
author | Phil Davis <phil.davis@inf.org> | 2016-12-13 20:46:10 +0545 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-13 20:46:10 +0545 |
commit | dadc11d7a7aae33ef284a4f8f4258d04e17d27fc (patch) | |
tree | eee608ec34be52401111b80c5d896ec2dc2acb25 /src/usr | |
parent | 86115e712b428279f95166401788de919267a888 (diff) | |
download | pfsense-dadc11d7a7aae33ef284a4f8f4258d04e17d27fc.zip pfsense-dadc11d7a7aae33ef284a4f8f4258d04e17d27fc.tar.gz |
status_dcp_leases change if statement style
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/status_dhcp_leases.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/usr/local/www/status_dhcp_leases.php b/src/usr/local/www/status_dhcp_leases.php index d1203e4..60748d4 100644 --- a/src/usr/local/www/status_dhcp_leases.php +++ b/src/usr/local/www/status_dhcp_leases.php @@ -502,7 +502,7 @@ if ($got_cid) { </thead> <tbody> <?php -if (count($dhcp_leases_subnet_counter)) { +if (count($dhcp_leases_subnet_counter)): ksort($dhcp_leases_subnet_counter); foreach ($dhcp_leases_subnet_counter as $listcounters): ?> @@ -514,14 +514,12 @@ if (count($dhcp_leases_subnet_counter)) { </tr> <?php endforeach; -} else { +else: ?> <tr> <td><?=gettext("No leases are in use")?></td> </tr> -<?php - } -?> +<?php endif; ?> </tbody> </table> </div> |