From 76edcba8cf4da9b8b9172d3d88fdc83e3a6755c7 Mon Sep 17 00:00:00 2001 From: Junior Date: Fri, 18 Apr 2025 15:56:15 -0400 Subject: [PATCH] Add ** to queue names in selects when empty --- ajax/ajax_getqueuelist.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ajax/ajax_getqueuelist.php b/ajax/ajax_getqueuelist.php index bb3645a..df387ee 100644 --- a/ajax/ajax_getqueuelist.php +++ b/ajax/ajax_getqueuelist.php @@ -8,7 +8,8 @@ $data = array(); foreach ( $queues as $queue ) { $newdata = array(); $newdata['id'] = $queue->getID(); - $newdata['name'] = $queue->getName(); + $count = $queue->getSongCount(); + $newdata['name'] = $queue->getName() . (($count == 0) ? " **" : ""); $newdata['type'] = $queue->getType(); $newdata['active'] = $queue->getActive(); $data['queues'][] = $newdata;