From 2bbfd3a0eab68288cd8f478acda0e560e9c4156a Mon Sep 17 00:00:00 2001 From: David Chandra Purnama Date: Tue, 5 Aug 2025 11:45:53 +0700 Subject: [PATCH] Update db_queries.php - Make sure data->rows is array/countable --- collectors/db_queries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collectors/db_queries.php b/collectors/db_queries.php index 25100129..aa11d2ad 100644 --- a/collectors/db_queries.php +++ b/collectors/db_queries.php @@ -236,7 +236,7 @@ public function process_db_object() { 'is_main_query' => true, ) ); - $this->data->total_qs = count( $this->data->rows ); + $this->data->total_qs = count( (array) $this->data->rows ); $this->data->total_time = $total_time; $this->data->has_result = $has_result; $this->data->has_trace = $has_trace;