Syslog the sphinx query error if there is any

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2021-10-23 14:51:21 +02:00
parent 8f2a655325
commit ca99f0cebe

View File

@ -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();