Skip to content

Commit

Permalink
undefined offset 0 MysqliDb.php line 559 ThingEngineer#937
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwalkerec authored Mar 31, 2024
1 parent 309f927 commit a4a93ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MysqliDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ private function queryUnprepared($query)
public function rawAddPrefix($query){
$query = str_replace(PHP_EOL, '', $query);
$query = preg_replace('/\s+/', ' ', $query);
preg_match_all("/(from|into|update|join|describe) [\\'\\´]?([a-zA-Z0-9_-]+)[\\'\\´]?/i", $query, $matches);
preg_match_all("/(from|into|update|join|describe) [\\'\\´\\`]?([a-zA-Z0-9_-]+)[\\'\\´\\`]?/i", $query, $matches);
list($from_table, $from, $table) = $matches;

// Check if there are matches
Expand Down

0 comments on commit a4a93ab

Please sign in to comment.