From 9d477c60199e3d0cd9ce6656e52d7bf872ffc2a2 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Wed, 14 Dec 2022 16:47:27 +0100 Subject: [PATCH] Fix missing api success indicator --- src/classes/api.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/classes/api.php b/src/classes/api.php index 2ff156fd..49a71cfc 100644 --- a/src/classes/api.php +++ b/src/classes/api.php @@ -32,11 +32,14 @@ class API if (file_exists($this->module_path)) { ob_start(); - $response = array(); + $response = array( + 'success' => false, + ); require $this->module_path; $response['warning'] = ob_get_clean(); + $response['success'] = true; header('Content-type: application/json; charset=utf-8'); echo json_encode($response);