From dea3ffa82b2b4b6b3fad319cd398f00dc587e338 Mon Sep 17 00:00:00 2001 From: Alessandro Briosi Date: Mon, 19 Jun 2017 15:18:18 +0200 Subject: [PATCH] fix syntax error on php 5.6 --- models/UserSearch.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/UserSearch.php b/models/UserSearch.php index cf0c18ffb..31c903a4b 100644 --- a/models/UserSearch.php +++ b/models/UserSearch.php @@ -103,7 +103,8 @@ public function search($params) $query->andFilterWhere(['item_name' => $this->auth_item]); } - $table_name = $query->modelClass::tableName(); + $modelClass = $query->modelClass; + $table_name = $modelClass::tableName(); if ($this->created_at !== null) { $date = strtotime($this->created_at);