From 7519da67438c9a62f691b9fb1a96248fc3e6cde3 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Wed, 25 Jan 2023 13:28:06 +0100 Subject: [PATCH] Fixed the default response for sphinx query() Signed-off-by: Janos SUTO --- webui/system/database/sphinx.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webui/system/database/sphinx.php b/webui/system/database/sphinx.php index d02f5378..187a8810 100644 --- a/webui/system/database/sphinx.php +++ b/webui/system/database/sphinx.php @@ -29,6 +29,8 @@ class Sphinx { $query->error = 1; $query->errmsg = "Error"; $query->query = $sql; + $query->num_rows = 0; + $query->rows = []; $query->total_found = 0; $time_start = microtime(true);