fix
This commit is contained in:
parent
277ef0beb2
commit
0d5bfe59a1
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue