diff options
author | Loui Chang <louipc.ist@gmail.com> | 2008-11-17 11:45:12 -0500 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2008-11-25 01:31:08 -0500 |
commit | 692cc1e9536c8440586cbca0957dbf7d41b65f4c (patch) | |
tree | f7df59421af4e047bb926891e47225e9d13fe134 /web/html/index.php | |
parent | 836c162946370c228525814388622821c7fc0f17 (diff) | |
download | aurweb-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/index.php')
-rw-r--r-- | web/html/index.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/html/index.php b/web/html/index.php index c7847f2..a712e4d 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 />'; } |