Fix navigation when loading a page that exists in the nav structure

This commit is contained in:
james 2010-08-31 17:41:54 +00:00
parent 81f3f3235a
commit 3766b0a3f6

View File

@ -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();