From fd0884c4b0764e6522fd0e5d61283e21865d3b64 Mon Sep 17 00:00:00 2001 From: Azu Nwaokobia Date: Sat, 25 Nov 2017 19:47:02 -0500 Subject: [PATCH] Fix for php 7.1 converting string to array --- src/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }