catch the case that the user has an old config with templateset_default missing
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 28 Jan 2006 17:26:59 +0000 (17:26 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 28 Jan 2006 17:26:59 +0000 (17:26 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10589 7612ce4b-ef26-0410-bec9-ea0150e637f0

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 );
 $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');
 
 $chosen_theme = getPref($data_dir, $username, 'chosen_theme');
 $sTplDir = getPref($data_dir, $username, 'sTplDir');