Преглед изворни кода

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', '');