forked from science-ation/science-ation
Fix navigation when loading a page that exists in the nav structure
This commit is contained in:
parent
81f3f3235a
commit
3766b0a3f6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user