mirror of
https://github.com/Floriansylvain/projet_programmation_web.git
synced 2026-08-19 19:53:18 +02:00
✨ Added visuals for charts (massive commit)
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
|
||||
require_once("class/dump.php");
|
||||
|
||||
if (!isset($_GET['q']) || !isset($_GET['search']) || !isset($_GET['option']) || !isset($_GET['offset']) ||
|
||||
($_GET['option'] == 'establishment' && $_GET['q'] == 'establishment')) {
|
||||
if (!isset($_GET['q']) || !isset($_GET['search']) || !isset($_GET['option']) || !isset($_GET['offset'])) {
|
||||
print_r(json_encode(array("status" => 400, "message" => "Missing query type or attributes.")));
|
||||
exit();
|
||||
}
|
||||
@@ -27,7 +26,7 @@ $json_object = match ($q) {
|
||||
"count" => dump::getThesesCount($search, $option),
|
||||
"years" => dump::getThesesYears($search, $option),
|
||||
"disciplines" => dump::getThesesDisciplines($search, $option),
|
||||
"establishment" => dump::getThesesEstablishments($search, $option),
|
||||
"establishments" => dump::getThesesEstablishments($search, $option),
|
||||
default => NULL,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user