From 48ae2d1aeaffb9aeac48bb07719c905d377361d8 Mon Sep 17 00:00:00 2001 From: phpipam Date: Wed, 13 Jul 2016 19:16:48 +0200 Subject: [PATCH] Small Cosmetic fixes --- app/admin/devices/index.php | 2 +- app/admin/users/print-all.php | 2 ++ app/tools/devices/all-devices.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/admin/devices/index.php b/app/admin/devices/index.php index 5866a9280..2c7c16dbd 100755 --- a/app/admin/devices/index.php +++ b/app/admin/devices/index.php @@ -39,7 +39,7 @@ show("warn alert-absolute", _('No devices configured').'!', false); + $Result->show("warning", _('No devices configured').'!', false); } /* Print them out */ else { diff --git a/app/admin/users/print-all.php b/app/admin/users/print-all.php index a3df66c76..909fe4949 100644 --- a/app/admin/users/print-all.php +++ b/app/admin/users/print-all.php @@ -93,7 +93,9 @@ # powerDNS if($user['role']=="Administrator") { + if ($User->settings->enablePowerDNS==1) { print ""._("Yes").""; + } print ""._("Yes").""; } else { diff --git a/app/tools/devices/all-devices.php b/app/tools/devices/all-devices.php index dc24d374b..5dce35065 100755 --- a/app/tools/devices/all-devices.php +++ b/app/tools/devices/all-devices.php @@ -59,7 +59,7 @@ print ""; // no devices -if(sizeof(@$devices) == 0) { +if($devices===false) { $colspan = 8 + $colspanCustom; print ""; print " ".$Result->show('info', _('No results')."!", false, false, true)."";