Commit e7b7b11e authored by jurgbohn's avatar jurgbohn

*sigh* Did i mention how much i dislike smarty?

parent db661709
......@@ -32,8 +32,9 @@ if(isset($_SESSION['session_id'])) {
unset($_SESSION['session_id']);
} else {
$logged_in = true;
$username = $res->fetchOne(0);
$userlevel = $res->fetchOne(1);
$row = $res->fetchRow(MDB2_FETCHMODE_ASSOC);
$username = $row['username'];
$userlevel = $row['userlevel'];
}
}
?>
......@@ -30,6 +30,7 @@ $smarty->assign("base_url", $base_url);
if($logged_in) {
$smarty->assign("logged_in", true);
$smarty->assign("username", $username);
$smarty->assign("userlevel", $userlevel);
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment