From ca99f0cebe7dee081af76ffedea6720c1c1f2404 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sat, 23 Oct 2021 14:51:21 +0200 Subject: [PATCH] Syslog the sphinx query error if there is any Signed-off-by: Janos SUTO --- webui/system/database/sphinx.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webui/system/database/sphinx.php b/webui/system/database/sphinx.php index faaf4dc1..f45231b8 100644 --- a/webui/system/database/sphinx.php +++ b/webui/system/database/sphinx.php @@ -39,7 +39,9 @@ class Sphinx { $s = $this->link->prepare($sql); if(!$s) { return $query; } - $s->execute($arr); + if(!$s->execute($arr)) { + syslog(LOG_INFO, $s->errorInfo()[2]); + } $this->affected = $s->rowCount();