From fbc7dd6b1c00265573671b4505dab74bf5c67ceb Mon Sep 17 00:00:00 2001 From: PandaWawawa Date: Thu, 8 Oct 2015 15:15:44 +0200 Subject: [PATCH] change list_alerts function to handle GET filter not POST --- html/includes/api_functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/includes/api_functions.inc.php b/html/includes/api_functions.inc.php index 637e7f219..7141e7bbc 100644 --- a/html/includes/api_functions.inc.php +++ b/html/includes/api_functions.inc.php @@ -602,8 +602,8 @@ function list_alerts() { global $config; $app = \Slim\Slim::getInstance(); $router = $app->router()->getCurrentRoute()->getParams(); - if (isset($_POST['state'])) { - $param = array(mres($_POST['state'])); + if (isset($_GET['state'])) { + $param = array(mres($_GET['state'])); } else { $param = array('1');