Fix the play button throwing error

This commit is contained in:
Cody Cook 2025-02-22 10:28:43 -08:00
commit a5949e0401

View file

@ -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'; ?>
<section>
<div class="container py-5">