From 9f858c6f0f706326916b5bcef95001b00cd56cff Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 12 Mar 2019 12:25:44 +0100 Subject: [PATCH] LSattr_html_select_list :: _sort() : make really static --- public_html/includes/class/class.LSattr_html_select_list.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public_html/includes/class/class.LSattr_html_select_list.php b/public_html/includes/class/class.LSattr_html_select_list.php index 0c601eaa..b3ad5a05 100644 --- a/public_html/includes/class/class.LSattr_html_select_list.php +++ b/public_html/includes/class/class.LSattr_html_select_list.php @@ -177,12 +177,11 @@ class LSattr_html_select_list extends LSattr_html{ * Apply sort feature on possible values if this feature is enabled * * @param[in] &$retInfos array Possible values array reference to sort - * @param[in] $options array|false Attribute options (optional) + * @param[in] $options array|false Attribute options * * @retval void **/ - protected function _sort(&$retInfos,$options=false) { - if (!$options) $options=$this -> config['html_options']; + protected static function _sort(&$retInfos, $options) { if (!isset($options['sort']) || $options['sort']) { if (isset($options['sortDirection']) && $options['sortDirection']=='DESC') { uasort($retInfos,array('LSattr_html_select_list','_sortTwoValuesDesc'));