From 2f49fc6a7b9d387b23c89965a77bc48cd19accf6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 31 Aug 2019 02:49:54 +0200 Subject: [PATCH] Fix scrutinizer --- htdocs/adherents/class/api_memberstypes.class.php | 2 +- htdocs/admin/oauthlogintokens.php | 2 +- htdocs/core/lib/oauth.lib.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/adherents/class/api_memberstypes.class.php b/htdocs/adherents/class/api_memberstypes.class.php index 80b7d738ad7..c703ca1ba6a 100644 --- a/htdocs/adherents/class/api_memberstypes.class.php +++ b/htdocs/adherents/class/api_memberstypes.class.php @@ -235,7 +235,7 @@ class MembersTypes extends DolibarrApi throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login); } - if (! $membertype->delete($membertype->id)) { + if (! $membertype->delete()) { throw new RestException(401, 'error when deleting member type'); } diff --git a/htdocs/admin/oauthlogintokens.php b/htdocs/admin/oauthlogintokens.php index e284d4b4834..0be3330bec4 100644 --- a/htdocs/admin/oauthlogintokens.php +++ b/htdocs/admin/oauthlogintokens.php @@ -115,7 +115,7 @@ llxHeader('', $langs->trans("PrintingSetup")); $linkback=''.$langs->trans("BackToModuleList").''; print load_fiche_titre($langs->trans('ConfigOAuth'), $linkback, 'title_setup'); -$head=oauthadmin_prepare_head($mode); +$head = oauthadmin_prepare_head(); dol_fiche_head($head, 'tokengeneration', '', -1, 'technic'); diff --git a/htdocs/core/lib/oauth.lib.php b/htdocs/core/lib/oauth.lib.php index a1582cceca5..fec35383194 100644 --- a/htdocs/core/lib/oauth.lib.php +++ b/htdocs/core/lib/oauth.lib.php @@ -271,7 +271,7 @@ $list = array ( */ function oauthadmin_prepare_head() { - global $langs, $conf, $user; + global $langs, $conf; $h = 0; $head = array();