summaryrefslogtreecommitdiff
path: root/modules/pref-prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-20 01:55:40 +0300
committerAndrew Dolgov <[email protected]>2010-11-20 01:55:40 +0300
commit3571742512cb191b4a92931bee9cee1699e75a55 (patch)
tree853c8f26fe7fcda6a5e36e2bbdbc9c82cf7f6185 /modules/pref-prefs.php
parent069d63ebf728ff9c87385795d7272fb00526c706 (diff)
pref-prefs: reposition profile warning
Diffstat (limited to 'modules/pref-prefs.php')
-rw-r--r--modules/pref-prefs.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php
index bd27d0d44..e0d4c232f 100644
--- a/modules/pref-prefs.php
+++ b/modules/pref-prefs.php
@@ -158,10 +158,6 @@
} else {
- if ($_SESSION["profile"]) {
- print_notice("Some preferences are only available in default profile.");
- }
-
if (!SINGLE_USER_MODE) {
$result = db_query($link, "SELECT id FROM ttrss_users
@@ -288,6 +284,10 @@
print "<div dojoType=\"dijit.layout.AccordionPane\" selected=\"true\" title=\"".__('Preferences')."\">";
if ($_SESSION["profile"]) {
+ print_notice("Some preferences are only available in default profile.");
+ }
+
+ if ($_SESSION["profile"]) {
initialize_user_prefs($link, $_SESSION["uid"], $_SESSION["profile"]);
$profile_qpart = "profile = '" . $_SESSION["profile"] . "'";
} else {