diff --git a/html/scan.php b/html/scan.php
index df9fc84..8490893 100644
--- a/html/scan.php
+++ b/html/scan.php
@@ -8,7 +8,7 @@
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$target = $_POST["target"];
-} elseif ($_SERVER['REQUEST_METHOD'] == 'GET') {
+} else if ($_SERVER['REQUEST_METHOD'] == 'GET') {
$target = $_GET["target"];
}
@@ -20,7 +20,7 @@
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// return immediately
$handle = popen('sudo -b -u \#'.$UID.' /opt/brother/scanner/brscan-skey/script/scanto'.$target.'.py', 'r');
- } elseif ($_SERVER['REQUEST_METHOD'] == 'GET') {
+ } else if ($_SERVER['REQUEST_METHOD'] == 'GET') {
// wait for completion
$output=shell_exec('sudo -u \#'.$UID.' /opt/brother/scanner/brscan-skey/script/scanto'.$target.'.py');
}