Explorar o código

quick fix to use sqgetGlobalVar instead of $_POST

tokul %!s(int64=21) %!d(string=hai) anos
pai
achega
f64bc52662
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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', '');