Skip to content

Commit a122f6e

Browse files
committed
datalog-viewer: show parent web-site for deleted cron-jobs, too
1 parent 46b7448 commit a122f6e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

interface/web/monitor/dataloghistory_view.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
$data = unserialize($record['data']);
6262
}
6363

64-
$out = describe($record['dbtable'], $data, $out);
64+
$out = describe($record['dbtable'], $data, $out, $record['action']);
6565

6666
switch ($record['action']) {
6767
case 'i':
@@ -136,7 +136,8 @@ function describe($dbtable, $data, $out) {
136136
$check = 'username';
137137
break;
138138
case 'cron':
139-
$temp = $app->db->queryOneRecord("SELECT domain FROM web_domain WHERE domain_id = ?", $data['new']['parent_domain_id']);
139+
$where = @($action == 'd')?$data['old']['parent_domain_id']:$data['new']['parent_domain_id'];
140+
$temp = $app->db->queryOneRecord("SELECT domain FROM web_domain WHERE domain_id = ?", $where);
140141
$out['describe_data'] = $temp['domain'];
141142
break;
142143
case 'directive_snippets':

0 commit comments

Comments
 (0)