Skip to content

Commit 44ab3ad

Browse files
committed
Correct mail_forwarding sub type links
1 parent de1ac56 commit 44ab3ad

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

interface/web/monitor/dataloghistory_view.php

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
$out['id'] = $id;
5353
$out['username'] = $record['user'];
5454

55+
if(!$data = unserialize(stripslashes($record['data']))) {
56+
$data = unserialize($record['data']);
57+
}
58+
5559
$out['timestamp'] = date($app->lng('conf_format_datetime'), $record['tstamp']);
5660
$out['table'] = $record['dbtable'];
5761
list($key, $value) = explode(':', $record['dbidx']);
@@ -62,7 +66,20 @@
6266
} else {
6367
switch ($out['table']) {
6468
case 'mail_forwarding':
65-
$file = 'mail/mail_forward_edit.php';
69+
switch ($data['new']['type']) {
70+
case 'alias':
71+
$file = 'mail/mail_alias_edit.php';
72+
break;
73+
case 'aliasdomain':
74+
$file = 'mail/mail_aliasdomain_edit.php';
75+
break;
76+
case 'forward':
77+
$file = 'mail/mail_forward_edit.php';
78+
break;
79+
case 'catchall':
80+
$file = 'mail/mail_domain_catchall_edit.php';
81+
break;
82+
}
6683
break;
6784
case 'mail_user':
6885
$file = 'mail/mail_user_edit.php';
@@ -107,10 +124,6 @@
107124

108125
$out['session_id'] = $record['session_id'];
109126

110-
if(!$data = unserialize(stripslashes($record['data']))) {
111-
$data = unserialize($record['data']);
112-
}
113-
114127
switch ($record['action']) {
115128
case 'i':
116129
$inserts = array();

0 commit comments

Comments
 (0)