diff options
Diffstat (limited to 'TyrianTemplate.php')
-rw-r--r-- | TyrianTemplate.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/TyrianTemplate.php b/TyrianTemplate.php index 4be0530..6287925 100644 --- a/TyrianTemplate.php +++ b/TyrianTemplate.php @@ -334,8 +334,6 @@ class TyrianTemplate extends BaseTemplate { /*************************************************************************************************/ function personaltools() { $personal_tools = $this->getPersonalTools(); - $notifications_message_tool = NULL; - $notifications_alert_tool = NULL; ?> <li class="dropdown"> @@ -356,6 +354,8 @@ class TyrianTemplate extends BaseTemplate { $notifications_alert_tool = $item; } else if ($key === 'notifications-message') { $notifications_message_tool = $item; + } else if ($key === 'notifications-notice') { + $notifications_notice_tool = $item; } else { echo $this->makeListItem( $key, $item ); } @@ -365,11 +365,15 @@ class TyrianTemplate extends BaseTemplate { </li> <?php - if (!is_null($notifications_message_tool)) { + if (isset($notifications_message_tool)) { echo $this->makeListItem('notifications-message', $notifications_message_tool); } - if (!is_null($notifications_alert_tool)) { + if (isset($notifications_notice_tool)) { + echo $this->makeListItem('notifications-notice', $notifications_notice_tool); + } + + if (isset($notifications_alert_tool)) { echo $this->makeListItem('notifications-alert', $notifications_alert_tool); } } |