diff --git a/src/functions.php b/src/functions.php index 775fd44..dccd677 100644 --- a/src/functions.php +++ b/src/functions.php @@ -484,10 +484,10 @@ function splitQueryText($query) { // i spent 3 days figuring out this line preg_match_all("/(?>[^;']|(''|(?>'([^']|\\')*[^\\\]')))+;/ixU", $query, $matches, PREG_SET_ORDER); - $querySplit = ""; + $querySplit = array(); foreach ($matches as $match) { - // get rid of the trailing semicolon + // get rid of the trailing semicolon $querySplit[] = substr($match[0], 0, -1); }