From cfaba6df12647fef06658f123a73819dc958789b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 2 Dec 2005 21:07:47 +0100 Subject: option GLOBAL_ENABLE_LABELS restricts labels globally --- backend.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index fd2659996..93199e43e 100644 --- a/backend.php +++ b/backend.php @@ -272,7 +272,7 @@ print ""; } - if (get_pref($link, 'ENABLE_LABELS')) { + if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) { $result = db_query($link, "SELECT id,sql_exp,description FROM ttrss_labels WHERE owner_uid = '$owner_uid' ORDER by description"); @@ -2203,6 +2203,10 @@ if ($op == "pref-labels") { + if (!GLOBAL_ENABLE_LABELS) { + return; + } + $subop = $_GET["subop"]; if ($subop == "test") { -- cgit v1.2.3-54-g00ecf