Small API Improvements

This commit is contained in:
Lncvrt committed 2025-03-02 13:11:20 -07:00
1 parent b5aa0fd219
commit c2fb61afaa
18 files changed
+44 -74

No files matched your search

+2 -5
View File
@@ -15,8 +15,8 @@ if ($conn->connect_error) {
die(json_encode($response));
}
$apikey = isset($_SERVER['HTTP_KEY']) ? $_SERVER['HTTP_KEY'] : '';
$uid = isset($_SERVER['HTTP_UID']) ? $_SERVER['HTTP_UID'] : '';
$apikey = $_SERVER['HTTP_KEY'] ?? '';
$uid = $_SERVER['HTTP_UID'] ?? '';
if (empty($apikey)) {
$response = [
@@ -89,7 +89,4 @@ if ($result->num_rows > 0) {
header('Content-Type: application/json');
die(json_encode($response));
}
$stmt->close();
$conn->close();
?>