From e5410dc59d90b3268c554af8937bea42eb8ce756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCseyin=20ASLIM?= Date: Sat, 2 Apr 2022 19:43:20 +0300 Subject: [PATCH] Fixed #984 - str_replace null parameters deprecated --- MysqliDb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MysqliDb.php b/MysqliDb.php index 6f1e957e..774c7cbe 100644 --- a/MysqliDb.php +++ b/MysqliDb.php @@ -551,7 +551,7 @@ private function queryUnprepared($query) * @return string Contains the returned rows from the query. */ public function rawAddPrefix($query){ - $query = str_replace(PHP_EOL, null, $query); + $query = str_replace(PHP_EOL, '', $query); $query = preg_replace('/\s+/', ' ', $query); preg_match_all("/(from|into|update|join) [\\'\\´]?([a-zA-Z0-9_-]+)[\\'\\´]?/i", $query, $matches); list($from_table, $from, $table) = $matches;