Skip to content

Commit

Permalink
Merge pull request #16 from dreanmer/master
Browse files Browse the repository at this point in the history
Fix - is_array on undefined key
  • Loading branch information
tassogama authored Dec 29, 2017
2 parents 964428c + e147a53 commit a7f2332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Criteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a7f2332

Please sign in to comment.