mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Make remembered sessions actually save themselves.
Also clean up a notice in index.php Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
836c162946
commit
692cc1e953
3 changed files with 27 additions and 9 deletions
|
@ -11,6 +11,7 @@ set_lang();
|
|||
check_sid();
|
||||
|
||||
html_header( __("Home") );
|
||||
|
||||
$dbh = db_connect();
|
||||
|
||||
?>
|
||||
|
@ -56,8 +57,8 @@ echo __(
|
|||
</td>
|
||||
<td class='boxSoft' valign='top'>
|
||||
<?php
|
||||
$user = username_from_sid($_COOKIE["AURSID"]);
|
||||
if (!empty($user)) {
|
||||
if (!empty($_COOKIE["AURSID"])) {
|
||||
$user = username_from_sid($_COOKIE["AURSID"]);
|
||||
user_table($user, $dbh);
|
||||
echo '<br />';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue