forked from science-ation/science-ation
make sure user_load is called in the right directory
unset session navigation when switching conferences
This commit is contained in:
parent
b3ce18ca0c
commit
f704f14134
@ -203,6 +203,7 @@ if(isset($_GET['switchconference'])) {
|
||||
if($r=mysql_fetch_object($q)) {
|
||||
$_SESSION['conferences_id']=$cid;
|
||||
}
|
||||
unset($_SESSION['nav']);
|
||||
}
|
||||
|
||||
if(intval($_SESSION['conferences_id'])>0) {
|
||||
|
@ -147,7 +147,7 @@ if(!$_SESSION['conferences_id']) {
|
||||
$cl="class=\"selected\"";
|
||||
else
|
||||
$cl="";
|
||||
echo "<li $cl><a $cl href=\"user_login.php?action=switchconference&switchconference=$r->id\">$r->name</a></li>\n";
|
||||
echo "<li $cl><a $cl href=\"{$config['SFIABDIRECTORY']}/user_login.php?action=switchconference&switchconference=$r->id\">$r->name</a></li>\n";
|
||||
}
|
||||
echo "</ul>\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user