Fixed the default response for sphinx query()

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2023-01-25 13:28:06 +01:00
parent fcc40c77be
commit 7519da6743

View File

@ -29,6 +29,8 @@ class Sphinx {
$query->error = 1; $query->error = 1;
$query->errmsg = "Error"; $query->errmsg = "Error";
$query->query = $sql; $query->query = $sql;
$query->num_rows = 0;
$query->rows = [];
$query->total_found = 0; $query->total_found = 0;
$time_start = microtime(true); $time_start = microtime(true);