From 57ab6b1297f46074bb81b5bafc653467d59dc9c9 Mon Sep 17 00:00:00 2001 From: Dmytro Karpovych Date: Tue, 11 Aug 2015 22:57:02 +0300 Subject: [PATCH] fix callable checking --- src/EditAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EditAction.php b/src/EditAction.php index 72fe2cc..13e977b 100755 --- a/src/EditAction.php +++ b/src/EditAction.php @@ -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'); } }