Skip to content
Snippets Groups Projects
Commit d0869c58 authored by Marius Burkard's avatar Marius Burkard
Browse files

Merge branch '6208-cron_delete-php-warning' into 'develop'

Resolve "cron_delete php warning"

Closes #6208

See merge request ispconfig/ispconfig3!1503
parents 48bac096 17a4b7d1
No related branches found
No related tags found
No related merge requests found
......@@ -184,12 +184,14 @@ class cron_plugin {
if(!$parent_domain) {
$tmp = $app->db->queryOneRecord('SELECT * FROM sys_datalog WHERE dbtable = ? AND dbidx = ? AND `action` = ? ORDER BY `datalog_id` DESC', 'web_domain', 'domain_id:' . $data['old']['parent_domain_id'], 'd');
$tmp = unserialize($tmp);
if($tmp && isset($tmp['old'])) {
$this->parent_domain = $tmp['old'];
} else {
$app->log("Parent domain not found", LOGLEVEL_WARN);
return 0;
if(is_array($tmp) && isset($tmp['data']) && strlen($tmp['data']) > 0) {
$tmp = unserialize($tmp['data']);
if($tmp && isset($tmp['old'])) {
$this->parent_domain = $tmp['old'];
} else {
$app->log("Parent domain not found", LOGLEVEL_WARN);
return 0;
}
}
} else {
$this->parent_domain = $parent_domain;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment