From a5949e0401f37a43011bc008cce689a6fee99b5a Mon Sep 17 00:00:00 2001 From: Cody Cook Date: Sat, 22 Feb 2025 10:28:43 -0800 Subject: [PATCH] Fix the play button throwing error --- mix.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mix.php b/mix.php index 444382e..2c67caa 100644 --- a/mix.php +++ b/mix.php @@ -29,8 +29,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'PUT') { if (isset($data['mix']) && $data['mix'] != "") { $playcount = new Playcount($data['mix'], $db); $playcount->updatePlaycount(); + echo json_encode(['success' => true]); + } else { + echo json_encode(['error' => 'No mix provided']); } + exit; // Stop further output } + require_once 'includes/header.php'; ?>