Call set_my_charset() before actually using , and fix variable name in case != iso...
[squirrelmail.git] / plugins / bug_report / setup.php
index fcdda93ebe5dc0c03a6061aac38e89d5bd8a955d..3aed195895e1851aec619a595c659ae8f92e4cfa 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * setup.php
  *
- * Copyright (c) 1999-2002 The SquirrelMail development team
+ * Copyright (c) 1999-2003 The SquirrelMail development team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * This is a standard Squirrelmail-1.2 API for plugins.
@@ -41,9 +41,8 @@ function bug_report_button() {
 
 function bug_report_save() {
     global $username,$data_dir;
-    global $bug_report_bug_report_visible;
 
-    if (isset($bug_report_bug_report_visible)) {
+    if( sqgetGlobalVar('bug_report_bug_report_visible', $vis, SQ_POST) ) {
         setPref($data_dir, $username, 'bug_report_visible', '1');
     } else {
         setPref($data_dir, $username, 'bug_report_visible', '');
@@ -70,4 +69,4 @@ function bug_report_options() {
     echo '> ' . _("Show button in toolbar") . "</td></tr>\n";
 }
 
-?>
\ No newline at end of file
+?>