Bugfix: Non-static method common\models\Settings::getValue() should not be...

 Bugfix: Non-static method common\models\Settings::getValue() should not be called statically, assuming $this from incompatible context
parent 372ac585
...@@ -64,7 +64,7 @@ class Settings extends \common\components\ActiveRecordModel ...@@ -64,7 +64,7 @@ class Settings extends \common\components\ActiveRecordModel
]; ];
} }
public function getValue($code) public static function getValue($code)
{ {
$model = Settings::find()->where(['code' => $code])->one(); $model = Settings::find()->where(['code' => $code])->one();
......
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