Skip to content

Commit 57ab6b1

Browse files
committed
fix callable checking
1 parent 341b60e commit 57ab6b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EditAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class EditAction extends Action
2525
public function init()
2626
{
2727
parent::init();
28-
if (is_callable($this->findModel)){
28+
if (!is_callable($this->findModel)){
2929
throw new InvalidConfigException('findModel must be set');
3030
}
3131
}

0 commit comments

Comments
 (0)