From 4bb2b57939fba920f3a67bf377e3fa850e9e4df7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Feb 2008 13:23:51 +0100 Subject: [PATCH] implement blacklist for disabled prefs options --- modules/pref-prefs.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 6c193430..e3e4cb4d 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -10,6 +10,9 @@ function module_pref_prefs($link) { $subop = $_REQUEST["subop"]; + $prefs_blacklist = array(); + //$prefs_blacklist = array("HIDE_FEEDLIST"); + if ($subop == "change-password") { $old_pw = $_POST["OLD_PASSWORD"]; @@ -329,6 +332,10 @@ while ($line = db_fetch_assoc($result)) { + if (in_array($line["pref_name"], $prefs_blacklist)) { + continue; + } + if ($active_section != $line["section_name"]) { if ($active_section != "") { -- 2.39.5