diff options
| author | ilotterytea <iltsu@alright.party> | 2025-10-06 14:18:53 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-10-06 14:18:53 +0500 |
| commit | c80ae4c0aab66a2e9b527ca983fa6ed772a98a87 (patch) | |
| tree | b04b447c59da72a0230e30bc955cd65d4ec845c4 | |
| parent | 0971848bc3d674b0e63f4f49bd704259cd3e648a (diff) | |
fix: Undefined array key "is_moderator"
| -rw-r--r-- | public/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index e1cfbce..e4542d8 100644 --- a/public/index.php +++ b/public/index.php @@ -306,7 +306,7 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt'); <p title="<?= $file['uploaded_at'] ?>">Uploaded <?= format_timestamp($file['uploaded_at']) ?> ago </p> <?php endif; ?> - <?php if ((FILE_SHOW_VIEWS || $_SESSION['is_moderator']) && isset($file['views'])): ?> + <?php if ((FILE_SHOW_VIEWS || isset($_SESSION['is_moderator'])) && isset($file['views'])): ?> <p><?= $file['views'] ?> views</p> <?php endif; ?> </div> |
