summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-02-20 13:23:51 +0100
committerAndrew Dolgov <[email protected]>2008-02-20 13:23:51 +0100
commit4bb2b57939fba920f3a67bf377e3fa850e9e4df7 (patch)
tree7cc60f9aa93f682ef7e9948f8d4213482bbacce6 /modules
parent03177e82c93109fb49cb3cc451fbcae22e737ced (diff)
implement blacklist for disabled prefs options
Diffstat (limited to 'modules')
-rw-r--r--modules/pref-prefs.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php
index 6c1934309..e3e4cb4d5 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 != "") {