catch the case that the user has an old config with templateset_default missing
[squirrelmail.git] / include / load_prefs.php
index a04f57b818b30ea61470d10e47a8878f5e551d1c..902b4bbe9b2cb10650ee656377314b733eee7e9b 100644 (file)
@@ -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');