Commit a122f6ee authored by Florian Schaal's avatar Florian Schaal

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

parent 46b74480
......@@ -61,7 +61,7 @@ if(!$data = unserialize(stripslashes($record['data']))) {
$data = unserialize($record['data']);
}
$out = describe($record['dbtable'], $data, $out);
$out = describe($record['dbtable'], $data, $out, $record['action']);
switch ($record['action']) {
case 'i':
......@@ -136,7 +136,8 @@ function describe($dbtable, $data, $out) {
$check = 'username';
break;
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'];
break;
case 'directive_snippets':
......
Markdown is supported
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