Commit a122f6ee authored by Florian Schaal's avatar Florian Schaal
Browse files

datalog-viewer: show parent web-site for deleted cron-jobs, too

parent 46b74480
...@@ -61,7 +61,7 @@ if(!$data = unserialize(stripslashes($record['data']))) { ...@@ -61,7 +61,7 @@ if(!$data = unserialize(stripslashes($record['data']))) {
$data = unserialize($record['data']); $data = unserialize($record['data']);
} }
$out = describe($record['dbtable'], $data, $out); $out = describe($record['dbtable'], $data, $out, $record['action']);
switch ($record['action']) { switch ($record['action']) {
case 'i': case 'i':
...@@ -136,7 +136,8 @@ function describe($dbtable, $data, $out) { ...@@ -136,7 +136,8 @@ function describe($dbtable, $data, $out) {
$check = 'username'; $check = 'username';
break; break;
case 'cron': case 'cron':
$temp = $app->db->queryOneRecord("SELECT domain FROM web_domain WHERE domain_id = ?", $data['new']['parent_domain_id']); $where = @($action == 'd')?$data['old']['parent_domain_id']:$data['new']['parent_domain_id'];
$temp = $app->db->queryOneRecord("SELECT domain FROM web_domain WHERE domain_id = ?", $where);
$out['describe_data'] = $temp['domain']; $out['describe_data'] = $temp['domain'];
break; break;
case 'directive_snippets': case 'directive_snippets':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment