summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-11-17 17:45:12 +0100
committerLoui Chang <louipc.ist@gmail.com>2008-11-25 07:31:08 +0100
commit692cc1e9536c8440586cbca0957dbf7d41b65f4c (patch)
treef7df59421af4e047bb926891e47225e9d13fe134 /web/html
parent836c162946370c228525814388622821c7fc0f17 (diff)
downloadaur-692cc1e9536c8440586cbca0957dbf7d41b65f4c.tar.gz
aur-692cc1e9536c8440586cbca0957dbf7d41b65f4c.tar.xz
Make remembered sessions actually save themselves.
Also clean up a notice in index.php Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/html/index.php b/web/html/index.php
index c7847f25..a712e4d1 100644
--- a/web/html/index.php
+++ b/web/html/index.php
@@ -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 />';
}