include("../functions/plugin.php");
$load_prefs_php = true;
+ if (!isset($username))
+ $username = '';
checkForPrefs($data_dir, $username);
$chosen_theme = getPref($data_dir, $username, "chosen_theme");
$index_order[$i] = $order;
$order = getPref($data_dir, $username, "order".($i+1));
}
- if (!$index_order) {
+ if (!isset($index_order)) {
$index_order[1] = 1;
$index_order[2] = 2;
$index_order[3] = 3;
$location_of_buttons = getPref($data_dir, $username, 'location_of_buttons');
if ($location_of_buttons == '')
$location_of_buttons = 'between';
+
+ $collapse_folders = getPref($data_dir, $username, 'collapse_folders');
do_hook("loading_prefs");