Avoid deprecated message caused by calling non-static method statically. Fixed by creating an instance to use.

This commit is contained in:
Nathan Gray 2015-05-20 16:21:25 +00:00
parent dc3e6c12c2
commit 89ab122d3a

View File

@ -828,7 +828,8 @@ class infolog_so
if ($this->db->capabilities['like_on_text']) $columns[] = 'info_des';
$wildcard = $op = null;
$search = so_sql::search2criteria($query['search'], $wildcard, $op, null, $columns);
$so_sql = new so_sql('infolog', $this->info_table, $this->db);
$search = $so_sql->search2criteria($query['search'], $wildcard, $op, null, $columns);
$sql_query = 'AND ('.(is_numeric($query['search']) ? 'main.info_id='.(int)$query['search'].' OR ' : '').
implode($op, $search) .')';