Skip to content

Commit

Permalink
fix is_array on undefined key
Browse files Browse the repository at this point in the history
  • Loading branch information
dreanmer committed Dec 29, 2017
1 parent 25fe7f5 commit e147a53
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 e147a53

Please sign in to comment.