diff --git a/includes/Elasticsearch/ESQueue.php b/includes/Elasticsearch/ESQueue.php index 5965ab18..bb65ef83 100644 --- a/includes/Elasticsearch/ESQueue.php +++ b/includes/Elasticsearch/ESQueue.php @@ -54,10 +54,10 @@ public function __construct() { * @return object */ public static function progress() { - $should_check = (int) db_query("SELECT count(*) + $should_check = (int) db_query("SELECT COUNT(*) FROM queue WHERE name LIKE :es", [ - ':es' => db_like('elasticsearch%'), + ':es' => db_like('elasticsearch').'%', ])->fetchField(); $queues = [];