From e147a5347240a5fd5135ac313a84e2705c63fd44 Mon Sep 17 00:00:00 2001 From: Alexandre Reis Date: Fri, 29 Dec 2017 13:34:59 -0200 Subject: [PATCH] fix is_array on undefined key --- src/Model/Criteria.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Criteria.php b/src/Model/Criteria.php index f59b0dc..20a7cf6 100644 --- a/src/Model/Criteria.php +++ b/src/Model/Criteria.php @@ -68,7 +68,7 @@ public function where($conditions, $bindParams = null, $bindTypes = null) { if (is_array($bindParams)) { $params = $this->getParams(); - if (is_array($params['bind'])) { + if (isset($params['bind'])) { foreach ($bindParams as $bind => $value) { if (array_key_exists($bind, $params['bind'])) { throw new DuplicatedBindException($bind);