Skip to content

Commit

Permalink
fix callable checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ZAYEC77 committed Aug 11, 2015
1 parent 341b60e commit 57ab6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EditAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class EditAction extends Action
public function init()
{
parent::init();
if (is_callable($this->findModel)){
if (!is_callable($this->findModel)){
throw new InvalidConfigException('findModel must be set');
}
}
Expand Down

0 comments on commit 57ab6b1

Please sign in to comment.