Skip to content

Commit dca4100

Browse files
authored
Fixed #984 - str_replace null parameters deprecated (#989)
1 parent 16564ba commit dca4100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MysqliDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ private function queryUnprepared($query)
551551
* @return string Contains the returned rows from the query.
552552
*/
553553
public function rawAddPrefix($query){
554-
$query = str_replace(PHP_EOL, null, $query);
554+
$query = str_replace(PHP_EOL, '', $query);
555555
$query = preg_replace('/\s+/', ' ', $query);
556556
preg_match_all("/(from|into|update|join) [\\'\\´]?([a-zA-Z0-9_-]+)[\\'\\´]?/i", $query, $matches);
557557
list($from_table, $from, $table) = $matches;

0 commit comments

Comments
 (0)