From a82f7baf2caca477ace435e24f11378b28e2f358 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 19 May 2015 14:57:35 +0000 Subject: [PATCH] Avoid deprecated message caused by calling non-static method statically. Fixed by creating an instance to use. --- infolog/inc/class.infolog_so.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infolog/inc/class.infolog_so.inc.php b/infolog/inc/class.infolog_so.inc.php index 538d436e8f..0b014ce1d4 100644 --- a/infolog/inc/class.infolog_so.inc.php +++ b/infolog/inc/class.infolog_so.inc.php @@ -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) .')';