LSattr_html_select_list :: _sort() : make really static

This commit is contained in:
Benjamin Renard 2019-03-12 12:25:44 +01:00
parent b577fe23a9
commit 9f858c6f0f

View file

@ -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'));