quick fix to use sqgetGlobalVar instead of $_POST
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 13 Apr 2004 05:35:01 +0000 (05:35 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 13 Apr 2004 05:35:01 +0000 (05:35 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7118 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/fortune/setup.php

index 92646e717da60502d76dc3fc6f45fc47cf968c96..d1c21bccd592fc3730105de133612dd13198f7ac 100644 (file)
@@ -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', '');