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 "