Skip to content

Commit 366809f

Browse files
author
Kristan Kenney
committed
Fix detection of mail services for UI
Mail tab was not displayed if only exim was installed.
1 parent 8b8577d commit 366809f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/templates/admin/panel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<?php } ?>
6969
<?php } ?>
7070

71-
<?php if ((isset($_SESSION['IMAP_SYSTEM'])) && (!empty($_SESSION['IMAP_SYSTEM']))) {?>
71+
<?php if ((isset($_SESSION['MAIL_SYSTEM'])) && (!empty($_SESSION['MAIL_SYSTEM']))) {?>
7272
<?php if($panel[$user]['MAIL_DOMAINS'] != "0") { ?>
7373
<div class="l-stat__col <?php if($TAB == 'MAIL' ) echo 'l-stat__col--active' ?>">
7474
<a href="/list/mail/">

web/templates/user/panel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<?php } ?>
6868
<?php } ?>
6969

70-
<?php if ((isset($_SESSION['IMAP_SYSTEM'])) && (!empty($_SESSION['IMAP_SYSTEM']))) {?>
70+
<?php if ((isset($_SESSION['MAIL_SYSTEM'])) && (!empty($_SESSION['MAIL_SYSTEM']))) {?>
7171
<?php if($panel[$user]['MAIL_DOMAINS'] != "0") { ?>
7272
<div class="l-stat__col <?php if($TAB == 'MAIL' ) echo 'l-stat__col--active' ?>">
7373
<a href="/list/mail/">

0 commit comments

Comments
 (0)