Skip to content

Commit

Permalink
fix syntax error on php 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Briosi committed Jun 19, 2017
1 parent ffe298b commit dea3ffa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/UserSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dea3ffa

Please sign in to comment.