diff --git a/common.inc.php b/common.inc.php index ebf3a1d..f7565cf 100644 --- a/common.inc.php +++ b/common.inc.php @@ -314,7 +314,7 @@ if(array_key_exists('users_id', $_SESSION)) { //take SFIABDIRECTORY off of the current URL $pageurl=substr($_SERVER['PHP_SELF'],strlen($config['SFIABDIRECTORY'])); -$q=mysql_query("SELECT * FROM rolestasks WHERE link='".mysql_real_escape_string($pageurl)."'"); +$q=mysql_query("SELECT * FROM rolestasks WHERE link='".mysql_real_escape_string($pageurl)."' AND conferencetype='{$conference['type']}'"); if($r=mysql_fetch_object($q)) { //okay we found it, now get its full tree above it $navTree=array();