a
This commit is contained in:
parent
b60cf8e42a
commit
1e0b5ad99d
|
|
@ -722,8 +722,8 @@
|
|||
}),
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
// alert(data);
|
||||
// console.log(data);
|
||||
alert(data);
|
||||
console.log(data);
|
||||
if (data.success && data.match) {
|
||||
showSuccess(data);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -273,6 +273,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
echo json_encode(['success' => false, 'message' => 'Action invalide']);
|
||||
}
|
||||
} else {
|
||||
ob_end_clean(); // ✅ vide le buffer avant d'envoyer le JSON
|
||||
ob_end_clean();
|
||||
echo json_encode(['success' => false, 'message' => 'Méthode non autorisée']);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user