Browse Source

quick fix to use sqgetGlobalVar instead of $_POST

tokul 21 years ago
parent
commit
f64bc52662
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/fortune/setup.php

+ 1 - 1
plugins/fortune/setup.php

@@ -84,7 +84,7 @@ function fortune_options() {
 function fortune_save() {
     global $username,$data_dir;
 
-    if (isset($_POST['fortune_fortune_visible'])) {
+    if (sqgetGlobalVar('fortune_fortune_visible',$fortune_fortune_visible,SQ_POST)) {
         setPref($data_dir, $username, 'fortune_visible', '1');
     } else {
         setPref($data_dir, $username, 'fortune_visible', '');