From 0d5bfe59a1e8b8f42d497eb4d440de2794161a21 Mon Sep 17 00:00:00 2001 From: Sasha Rybkin Date: Mon, 26 Apr 2021 17:31:23 +0300 Subject: [PATCH] fix --- models/MoleTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];