forked from Wavyzz/dolibarr
Fix scrutinizer
This commit is contained in:
@@ -235,7 +235,7 @@ class MembersTypes extends DolibarrApi
|
|||||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
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');
|
throw new RestException(401, 'error when deleting member type');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ llxHeader('', $langs->trans("PrintingSetup"));
|
|||||||
$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
|
$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
|
||||||
print load_fiche_titre($langs->trans('ConfigOAuth'), $linkback, 'title_setup');
|
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');
|
dol_fiche_head($head, 'tokengeneration', '', -1, 'technic');
|
||||||
|
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ $list = array (
|
|||||||
*/
|
*/
|
||||||
function oauthadmin_prepare_head()
|
function oauthadmin_prepare_head()
|
||||||
{
|
{
|
||||||
global $langs, $conf, $user;
|
global $langs, $conf;
|
||||||
$h = 0;
|
$h = 0;
|
||||||
$head = array();
|
$head = array();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user