make sure user_load is called in the right directory

unset session navigation when switching conferences
This commit is contained in:
james 2010-07-21 15:16:39 +00:00
parent b3ce18ca0c
commit f704f14134
2 changed files with 2 additions and 1 deletions

View File

@ -203,6 +203,7 @@ if(isset($_GET['switchconference'])) {
if($r=mysql_fetch_object($q)) { if($r=mysql_fetch_object($q)) {
$_SESSION['conferences_id']=$cid; $_SESSION['conferences_id']=$cid;
} }
unset($_SESSION['nav']);
} }
if(intval($_SESSION['conferences_id'])>0) { if(intval($_SESSION['conferences_id'])>0) {

View File

@ -147,7 +147,7 @@ if(!$_SESSION['conferences_id']) {
$cl="class=\"selected\""; $cl="class=\"selected\"";
else else
$cl=""; $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"; echo "</ul>\n";
} }