From 5f095a08127f107a7ad0d7ec1425c1bbe549905c Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Mon, 28 Nov 2022 16:50:17 +0100 Subject: [PATCH] insertAndMakeListUser.php update and testing --- Sources/php_script/script/insertAndMakeListUser.php | 2 +- Sources/php_script/script/test.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Sources/php_script/script/test.php diff --git a/Sources/php_script/script/insertAndMakeListUser.php b/Sources/php_script/script/insertAndMakeListUser.php index 2c1db3e..fd05329 100644 --- a/Sources/php_script/script/insertAndMakeListUser.php +++ b/Sources/php_script/script/insertAndMakeListUser.php @@ -90,7 +90,7 @@ function insertUserAndReturnList(): array|int if (!empty($listUser)){ return 2; } - return 3; //Return an array + return $listUser; //Return an array } else { //If the method POST return nothing diff --git a/Sources/php_script/script/test.php b/Sources/php_script/script/test.php new file mode 100644 index 0000000..8512f2f --- /dev/null +++ b/Sources/php_script/script/test.php @@ -0,0 +1,8 @@ +