Browse Source

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

Thijs Kinkhorst 19 years ago
parent
commit
c770eea259
1 changed files with 1 additions and 0 deletions
  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');