From 56707e4941aee9f65d2c34c5af7fcff349de5e39 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 20 Aug 2010 19:59:20 +0000 Subject: [PATCH] Oops sort the menu's correctly, and restrict the editor to one less level than before (as per TUAG request) --- common.inc.php | 2 +- nav.php | 13 ++++++++++--- super/roletasks.php | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/common.inc.php b/common.inc.php index c1435cc..171e197 100644 --- a/common.inc.php +++ b/common.inc.php @@ -250,7 +250,7 @@ if(is_array($nav)) { if(is_array($_SESSION['roles'])) { foreach($_SESSION['roles'] AS $roletype) { $roleid=$roles[$roletype]['id']; - $q=mysql_query("SELECT * FROM rolestasks WHERE roles_id='$roleid' AND pid=0 AND conferencetype='{$conference['type']}' ORDER BY task"); + $q=mysql_query("SELECT * FROM rolestasks WHERE roles_id='$roleid' AND pid=0 AND conferencetype='{$conference['type']}' ORDER BY ord,task"); if(mysql_num_rows($q)==1) { $setPrimaryNav=true; } diff --git a/nav.php b/nav.php index d996e92..07ffe78 100644 --- a/nav.php +++ b/nav.php @@ -34,7 +34,8 @@ unset($_SESSION['nav']['secondary']); unset($_SESSION['nav']['tertiary']); unset($_SESSION['nav']['tertiarylink']); - $q=mysql_query("SELECT * FROM rolestasks WHERE pid='$id' AND level=1 ORDER By ord,task"); + $q=mysql_query("SELECT * FROM rolestasks WHERE pid='$id' AND level=1 AND conferencetype='{$conference['type']}' ORDER By ord,task"); + echo mysql_error(); echo "