From c3343a0e0f32cf8d835dd1581a1647756ee76aa5 Mon Sep 17 00:00:00 2001 From: Botanic Date: Wed, 23 Oct 2013 17:12:47 -0700 Subject: [PATCH] fixed groupid if there are no groups --- .../tools/server/ryzom_ams/www/html/inc/show_queue.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_queue.php b/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_queue.php index 6d3265b28..17bc62985 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_queue.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_queue.php @@ -82,7 +82,11 @@ function show_queue(){ case "create_queue": $userid = filter_var($_POST['userid'], FILTER_SANITIZE_NUMBER_INT); - $groupid = filter_var($_POST['groupid'], FILTER_SANITIZE_NUMBER_INT); + if (isset($_POST['groupid'])) { + $groupid = filter_var($_POST['groupid'], FILTER_SANITIZE_NUMBER_INT); + } else { + $groupid = 0; + } $what = filter_var($_POST['what'], FILTER_SANITIZE_STRING); $how = filter_var($_POST['how'], FILTER_SANITIZE_STRING); $who = filter_var($_POST['who'], FILTER_SANITIZE_STRING);