]> git.wh0rd.org Git - tt-rss.git/commitdiff
pref-prefs: reposition profile warning
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Nov 2010 22:55:40 +0000 (01:55 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Nov 2010 22:55:40 +0000 (01:55 +0300)
modules/pref-prefs.php

index bd27d0d44d0d800914a15c38bf677374b2c675ed..e0d4c232f16ab697e59317bf98519af2186b6fbf 100644 (file)
 
                } 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
 
                        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"] . "'";