3
0
Fork 0
This commit is contained in:
Александр Рыбкин 2021-04-26 17:31:23 +03:00
parent 277ef0beb2
commit 0d5bfe59a1
1 changed files with 1 additions and 1 deletions

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)
{
$module = '';
if(stripos($model->controller, '.'))
if(stripos($controller, '.') !== false)
{
$arController = explode('.', $controller);
$module = $arController[0];