Check that a theme exists in cookie before trying to use the value.

This commit is contained in:
Retro_Guy 2023-09-09 04:34:17 -07:00
parent 5e8a78e6d6
commit ae47019faf
1 changed files with 1 additions and 1 deletions

View File

@ -629,7 +629,7 @@ function groups_show($gruppen)
}
$groupdisplay = '<tr class="' . $lineclass . '"><td style="text-align: center;" class="' . $lineclass . '">';
$groupdisplay .= '<a href="overboard.php?thisgroup=' . _rawurlencode($g->name) . '">';
if (file_exists('../common/themes/' . $_SESSION['theme'] . '/images/latest.png')) {
if ((isset($_SESSION['theme'])) && file_exists('../common/themes/' . $_SESSION['theme'] . '/images/latest.png')) {
$latest_image = '../common/themes/' . $_SESSION['theme'] . '/images/latest.png';
} else {
$latest_image = '../common/images/latest.png';