summaryrefslogtreecommitdiff
path: root/user.php
diff options
context:
space:
mode:
authorCflip <36554078+cflip@users.noreply.github.com>2021-02-10 20:40:32 -0700
committerCflip <36554078+cflip@users.noreply.github.com>2021-02-10 20:40:32 -0700
commitf83530a122119d7f69812493f9c2f4987ccb2065 (patch)
tree691ed8597a8d3275998f7db951b7b055ef5baf3b /user.php
parent4c9d433ba1c52ad67e4cccabf04e709bb8b85070 (diff)
Reorganize code and add info to front page
Diffstat (limited to 'user.php')
-rw-r--r--user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/user.php b/user.php
index 5a84156..62b9144 100644
--- a/user.php
+++ b/user.php
@@ -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>';
}