Fix: Bad selection of option
This commit is contained in:
parent
a555b47acd
commit
77f177d846
@ -229,8 +229,9 @@ function show_theme($fuser,$edit=0,$foruserprofile=false)
|
|||||||
$dirthemes=array_merge(array($forcethemedir.'/theme'),(array) $conf->modules_parts['themes']);
|
$dirthemes=array_merge(array($forcethemedir.'/theme'),(array) $conf->modules_parts['themes']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$selected_theme=$conf->global->MAIN_THEME;
|
$selected_theme='';
|
||||||
if (! empty($fuser->conf->MAIN_THEME)) $selected_theme=$fuser->conf->MAIN_THEME;
|
if (empty($foruserprofile)) $selected_theme=$conf->global->MAIN_THEME;
|
||||||
|
else $selected_theme=empty($fuser->conf->MAIN_THEME)?'':$fuser->conf->MAIN_THEME;
|
||||||
|
|
||||||
$colspan=2;
|
$colspan=2;
|
||||||
if ($foruserprofile) $colspan=4;
|
if ($foruserprofile) $colspan=4;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user