We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5159467 commit 2f5d7f2Copy full SHA for 2f5d7f2
MysqliDb.php
@@ -556,6 +556,10 @@ public function rawAddPrefix($query){
556
preg_match_all("/(from|into|update|join|describe) [\\'\\´]?([a-zA-Z0-9_-]+)[\\'\\´]?/i", $query, $matches);
557
list($from_table, $from, $table) = $matches;
558
559
+ // Check if there are matches
560
+ if (empty($table[0]))
561
+ return $query;
562
+
563
return str_replace($table[0], self::$prefix.$table[0], $query);
564
}
565
0 commit comments