From b577847f9b74e0df82ba9f3474e5445e2d77365f Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sun, 17 Mar 2019 12:20:36 -0400 Subject: [PATCH] Move condition --- includes/dashboard.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/dashboard.php b/includes/dashboard.php index e18db89..3ab145f 100755 --- a/includes/dashboard.php +++ b/includes/dashboard.php @@ -173,7 +173,8 @@ function DisplayDashboard(){ } } else { $status->addMessage(sprintf(_('Interface is %s.'), strtolower($interfaceState)), $classMsgDevicestatus); - } + + ?> exec( 'pidof lokinet | wc -l', $lokinetstatus); if( $lokinetstatus[0] == 0 ) { @@ -182,8 +183,6 @@ function DisplayDashboard(){ } else { $status = '
Lokinet is running
'; - } - ?>