This commit is contained in:
2021-04-26 17:31:23 +03:00
parent 277ef0beb2
commit 0d5bfe59a1

View File

@@ -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) public static function add($controller, $name, $params = array(), $priority = 0, $period = 0, $dateAdd = false, $project = false)
{ {
$module = ''; $module = '';
if(stripos($model->controller, '.')) if(stripos($controller, '.') !== false)
{ {
$arController = explode('.', $controller); $arController = explode('.', $controller);
$module = $arController[0]; $module = $arController[0];