diff options
author | Cflip <36554078+cflip@users.noreply.github.com> | 2021-02-10 20:40:32 -0700 |
---|---|---|
committer | Cflip <36554078+cflip@users.noreply.github.com> | 2021-02-10 20:40:32 -0700 |
commit | f83530a122119d7f69812493f9c2f4987ccb2065 (patch) | |
tree | 691ed8597a8d3275998f7db951b7b055ef5baf3b /user.php | |
parent | 4c9d433ba1c52ad67e4cccabf04e709bb8b85070 (diff) |
Reorganize code and add info to front page
Diffstat (limited to 'user.php')
-rw-r--r-- | user.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ <?php include_once 'header.php'; include_once 'includes/db_inc.php'; -include_once 'includes/functions_inc.php'; +include_once 'includes/functions_display.php'; ?> <?php @@ -33,7 +33,7 @@ if (!isset($_GET['id'])) { echo 'Member since '. date('M d, Y', strtotime($user['user_date'])); } - if ($_SESSION['user_id'] == $_GET['id']) { + if (isset($_SESSION['user_id']) && $_SESSION['user_id'] == $_GET['id']) { echo '<br><p><a href=change_passw.php>Change Password</a></p>'; } |