Commit d6d5962c authored by Reto Da Forno's avatar Reto Da Forno
Browse files

issue with empty remoteIp xml tag fixed

parent b3a9486e
......@@ -1054,15 +1054,15 @@ function update_add_test($xml_config, &$errors, $existing_test_id = NULL, $abort
// If no IP address is given for serial service, use the one from which the test was uploaded:
foreach ($testconfig->serialConf as $sc) {
if (isset($sc->remoteIp) && trim($sc->remoteIp) == "") {
$sc->addChild('remoteIp', $_SERVER['REMOTE_ADDR']);
$sc->remoteIp = $_SERVER['REMOTE_ADDR'];
}
}
// If no IP address is given for debug service, use the one from which the test was uploaded:
foreach ($testconfig->debugConf as $sc) {
/*foreach ($testconfig->debugConf as $sc) {
if (isset($sc->remoteIp) && trim($sc->remoteIp) == "") {
$sc->addChild('remoteIp', $_SERVER['REMOTE_ADDR']);
}
}
}*/
}
adjust_schedule_tag($testconfig);
......
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