Skip to content

Commit ccdc011

Browse files
committed
Move domain transition in if statement block
1 parent 7cf894f commit ccdc011

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

interface/lib/classes/validate_cron.inc.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,11 @@ function command_format($field_name, $field_value, $validator) {
5959

6060
if($cronjob['parent_domain_id'] > 0) {
6161
$parent_domain = $app->db->queryOneRecord("SELECT `domain` FROM `web_domain` WHERE `domain_id` = ?", $cronjob['parent_domain_id']);
62+
$trans = array(
63+
'{DOMAIN}' => $parent_domain['domain']
64+
);
6265
}
6366

64-
$trans = array(
65-
'{DOMAIN}' => $parent_domain['domain']
66-
);
67-
6867
$field_value = strtr($field_value, $trans);
6968

7069
}

0 commit comments

Comments
 (0)