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;