Skip to content

Commit f757b05

Browse files
committed
fix escapeMatch to handle null
1 parent 0a6fce1 commit f757b05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/SphinxQL.php

+4
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,10 @@ public function compileEscapeChars($array = array())
13681368
*/
13691369
public function escapeMatch($string)
13701370
{
1371+
if (is_null($string)) {
1372+
return '';
1373+
}
1374+
13711375
if ($string instanceof Expression) {
13721376
return $string->value();
13731377
}

0 commit comments

Comments
 (0)