From 1a3fbc092d651ac68ccd2a6b3f4e443c5527978d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 15 Dec 2017 17:07:32 +0100 Subject: [PATCH] Fix method not found --- htdocs/admin/modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 18546d67dc1..747a3cd41c3 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -691,7 +691,7 @@ if ($mode == 'common') } else if (! empty($objMod->always_enabled) || ((! empty($conf->multicompany->enabled) && $objMod->core_enabled) && ($user->entity || $conf->entity!=1))) { - if ($objMod->alreadyUsed()) print $langs->trans("Used"); + if (method_exists($objMod, 'alreadyUsed') && $objMod->alreadyUsed()) print $langs->trans("Used"); else print $langs->trans("Required"); if (! empty($conf->multicompany->enabled) && $user->entity) $disableSetup++; }