mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 09:58:46 +00:00
fixed groupid if there are no groups
This commit is contained in:
parent
74aeedc681
commit
0293dbe5ad
1 changed files with 5 additions and 1 deletions
|
@ -82,7 +82,11 @@ function show_queue(){
|
||||||
|
|
||||||
case "create_queue":
|
case "create_queue":
|
||||||
$userid = filter_var($_POST['userid'], FILTER_SANITIZE_NUMBER_INT);
|
$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);
|
$what = filter_var($_POST['what'], FILTER_SANITIZE_STRING);
|
||||||
$how = filter_var($_POST['how'], FILTER_SANITIZE_STRING);
|
$how = filter_var($_POST['how'], FILTER_SANITIZE_STRING);
|
||||||
$who = filter_var($_POST['who'], FILTER_SANITIZE_STRING);
|
$who = filter_var($_POST['who'], FILTER_SANITIZE_STRING);
|
||||||
|
|
Loading…
Reference in a new issue