Commit 508c16b9 authored by Shakarim Sapa's avatar Shakarim Sapa

- Fix

parent d12769b7
......@@ -27,8 +27,7 @@ class MetaTagBehavior extends Behavior
public function eventInit($event)
{
echo Yii::$app->controller->id; die;
if(in_array(Yii::$app->controller->action->id, $this->actions))
if(isset(Yii::$app->controller) && in_array(Yii::$app->controller->action->id, $this->actions))
{
$langs = Languages::find()->all();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment