diff --git a/models/MoleTask.php b/models/MoleTask.php index 4adea46..7f07ace 100644 --- a/models/MoleTask.php +++ b/models/MoleTask.php @@ -127,7 +127,7 @@ class MoleTask extends \yii\db\ActiveRecord public static function add($controller, $name, $params = array(), $priority = 0, $period = 0, $dateAdd = false, $project = false) { $module = ''; - if(stripos($model->controller, '.')) + if(stripos($controller, '.') !== false) { $arController = explode('.', $controller); $module = $arController[0];