浏览代码

quick fix to use sqgetGlobalVar instead of $_POST

tokul 21 年之前
父节点
当前提交
f64bc52662
共有 1 个文件被更改,包括 1 次插入1 次删除
  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', '');