Просмотр исходного кода

catch the case that the user has an old config with templateset_default missing

Thijs Kinkhorst 19 лет назад
Родитель
Сommit
c770eea259
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      include/load_prefs.php

+ 1 - 0
include/load_prefs.php

@@ -27,6 +27,7 @@ $custom_css = getPref($data_dir, $username, 'custom_css', 'none' );
 $theme = ( !isset($theme) ? array() : $theme );
 $color = ( !isset($color) ? array() : $color );
 $aTemplateSet = ( !isset($aTemplateSet) ? array() : $aTemplateSet );
+$templateset_default = ( !isset($templateset_default) ? 0 : $templateset_default );
 
 $chosen_theme = getPref($data_dir, $username, 'chosen_theme');
 $sTplDir = getPref($data_dir, $username, 'sTplDir');