From cce818801ba0bc2dfafa3b43f02c58ba72f25bae Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Wed, 20 Mar 2019 15:13:06 -0400 Subject: [PATCH] remove else --- includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index d9238f8..c15b50e 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -600,7 +600,8 @@ function SaveTORAndVPNConfig(){ } elseif( isset($_POST['StartLokinet']) ) { echo "Attempting to start Lokinet"; exec( 'sudo /home/pi/loki-network/lokicontrol.sh > /dev/null &', $return ); - } elseif( isset($_POST['StopLokinet']) ) { + + if( isset($_POST['StopLokinet']) ) { echo "Attempting to stop Lokinet"; exec( 'sudo /home/pi/loki-network/lokishutdown.sh > /dev/null &', $return ); } elseif( isset($_POST['GenerateLokinet']) ) {