From 3faa2b558f033816986efad998a9e2cae97095a8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 21 Jan 2013 15:04:34 +0100 Subject: [PATCH] Renamed param. --- htdocs/core/class/extrafields.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 9a44de0dbf0..799200ca5bf 100755 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -467,17 +467,17 @@ class ExtraFields * Load array this->attribute_label * * @param string $elementtype Type of element - * @param boolean $forcecheck override test of MAIN_EXTRAFIELDS_DISABLED + * @param boolean $forceload Force load of extra fields whatever is option MAIN_EXTRAFIELDS_DISABLED * @return array Array of attributes for all extra fields */ - function fetch_name_optionals_label($elementtype='member',$forcecheck=false) + function fetch_name_optionals_label($elementtype='member',$forceload=false) { global $conf; $array_name_label=array(); // For avoid conflicts with external modules - if (!empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && !$forcecheck) + if (!$forceload && !empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) return $array_name_label; $sql = "SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired";