mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-09-01 20:57:52 -04:00
Fix to hide subscriber menu when not configured
This commit is contained in:
parent
55f92ead6d
commit
0b3e617d96
@ -27,6 +27,7 @@ class Template{
|
||||
if ( 'admin' == $str_url ) {
|
||||
$strSubsMenu = '';
|
||||
} else {
|
||||
if (SUBSCRIBE_EMAIL || SUBSCRIBE_TELEGRAM ) {
|
||||
// Subscriber menu is to be shown...
|
||||
$strSubsMenu = '<ul class="nav navbar-nav mr-auto">';
|
||||
// If subscriber is not logged on, display subscriber menus
|
||||
@ -43,6 +44,7 @@ class Template{
|
||||
}
|
||||
$strSubsMenu .= '</ul>';
|
||||
}
|
||||
}
|
||||
// If subscriber is logged on, display unsub and logoff menu points
|
||||
if ( (isset($_SESSION['subscriber_valid'])) && $_SESSION['subscriber_valid'] ) {
|
||||
$strSubsMenu .= '<li><a href="?do=subscriptions">'._('Subscriptions').'</a></li>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user