summaryrefslogtreecommitdiff
path: root/pages/profiles.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-22 10:29:48 +0100
committerMinteck <contact@minteck.org>2023-02-22 10:29:48 +0100
commitbf2558253637537c2d57765e557bdc0e164c58ee (patch)
tree9c50b253090001183ba574cc073d13f74e273758 /pages/profiles.inc
parent005bbb3c5b211dbb52cf8dcedac505f8a683cf42 (diff)
downloadpluralconnect-bf2558253637537c2d57765e557bdc0e164c58ee.tar.gz
pluralconnect-bf2558253637537c2d57765e557bdc0e164c58ee.tar.bz2
pluralconnect-bf2558253637537c2d57765e557bdc0e164c58ee.zip
Updated 23 files, added assets/uploads/pt-princesscelestia.png and renamed assets/uploads/pt-luna.png (automated)
Diffstat (limited to 'pages/profiles.inc')
-rw-r--r--pages/profiles.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/profiles.inc b/pages/profiles.inc
index f24d5d9..dd6df4b 100644
--- a/pages/profiles.inc
+++ b/pages/profiles.inc
@@ -1,6 +1,6 @@
<?php
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $title; global $isLoggedIn; global $lang; global $pages; global $_PROFILE;
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $title; global $isLoggedIn; global $lang; global $pages; global $_PROFILE; global $isLowerLoggedIn;
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/profiles.inc';
@@ -27,7 +27,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/profiles.inc';
?>
- <?php if (count($fronters) > 0): $me = $fronters[0]; $me = array_values(array_filter($ordered, function ($i) use ($me) { return $i["id"] === $me["id"]; }))[0]; ?>
+ <?php if (!$isLowerLoggedIn && count($fronters) > 0): $me = $fronters[0]; $me = array_values(array_filter($ordered, function ($i) use ($me) { return $i["id"] === $me["id"]; }))[0]; ?>
<p>Hi <b><?= $me["display_name"] ?></b>,
<?php if ($me["_score"]["progress"] === 1): ?>
your profile is complete, congratulations!