From 2748376f6f175064a7723480271250051df839f7 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 20 Dec 2022 15:44:48 -0700 Subject: [PATCH] Make sure default option is first --- preferences/inc/class.preferences_settings.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/preferences/inc/class.preferences_settings.inc.php b/preferences/inc/class.preferences_settings.inc.php index 326f713344..67a9c82c43 100644 --- a/preferences/inc/class.preferences_settings.inc.php +++ b/preferences/inc/class.preferences_settings.inc.php @@ -505,14 +505,14 @@ class preferences_settings switch($type) { case 'user': - $setting['values'] = array('' => lang('Use default'))+$setting['values']; + $setting['values'] = array(['value'=>'','label' => lang('Use default')])+$setting['values']; break; case 'default': case 'group': - $setting['values'] = array('' => lang('No default'))+$setting['values']; + $setting['values'] = array(['value'=>'','label' => lang('No default')])+$setting['values']; break; case 'forced'; - $setting['values'] = array('**NULL**' => lang('Users choice'))+$setting['values']; + $setting['values'] = array(['value'=> '**NULL**','label' => lang('Users choice')])+$setting['values']; break; } }