From 3126483baeaaffddf3495c7126664f55b66df2ad Mon Sep 17 00:00:00 2001 From: alex2911 Date: Wed, 6 Mar 2019 20:37:26 +0300 Subject: [PATCH] DIGITEC-1105 | Add is_array check for map bind --- Model/MySQLiStatement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/MySQLiStatement.php b/Model/MySQLiStatement.php index 87cdaf6..ac80da1 100644 --- a/Model/MySQLiStatement.php +++ b/Model/MySQLiStatement.php @@ -21,7 +21,7 @@ class MySQLiStatement extends DbStatement if ($this->map === null) { $this->mapPlaceholders(); } - if (count($this->map) > 0) { + if (is_array($this->map) && count($this->map) > 0) { if (!is_string($param) && !is_int($param)) { throw new \Majestic\Exception\GeneralException('Placeholder must be an integer or string'); }