From ff6f5eea6f2ff00f91852ba39fe1d4f029fc2c61 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 Oct 2016 10:47:47 +0200 Subject: [PATCH] Fix travis errors --- htdocs/adherents/class/api_members.class.php | 2 +- htdocs/api/class/api.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/class/api_members.class.php b/htdocs/adherents/class/api_members.class.php index 9b55ef995f7..548b5728b1a 100644 --- a/htdocs/adherents/class/api_members.class.php +++ b/htdocs/adherents/class/api_members.class.php @@ -89,7 +89,7 @@ class Members extends DolibarrApi * * @throws RestException */ - function index($sortfield = "t.rowid", $sortorder = 'ASC', $limit = 0, $page = 0, $typeid = '', $login = '', $name = '', $sqlfilters = '') { + function index($sortfield = "t.rowid", $sortorder = 'ASC', $limit = 0, $page = 0, $typeid = '', $sqlfilters = '') { global $db, $conf; $obj_ret = array(); diff --git a/htdocs/api/class/api.class.php b/htdocs/api/class/api.class.php index 1eacdffa167..45f2be3e4da 100644 --- a/htdocs/api/class/api.class.php +++ b/htdocs/api/class/api.class.php @@ -198,7 +198,7 @@ class DolibarrApi * @param array $matches Array of found string by regex search * @return string Forged criteria. Example: "t.field like 'abc%'" */ - protected static function _forge_criteria_callback($matches) + static function _forge_criteria_callback($matches) { global $db;