addsitegroup.hook.php (fogproject-1.5.5) | : | addsitegroup.hook.php (fogproject-1.5.6) | ||
---|---|---|---|---|
skipping to change at line 218 | skipping to change at line 218 | |||
); | ); | |||
$insert_values = array(); | $insert_values = array(); | |||
foreach ((array)$arguments['Group']->get('hosts') as &$hostID) { | foreach ((array)$arguments['Group']->get('hosts') as &$hostID) { | |||
$insert_values[] = array( | $insert_values[] = array( | |||
$site, | $site, | |||
$hostID | $hostID | |||
); | ); | |||
unset($hostID); | unset($hostID); | |||
} | } | |||
if (count($insert_values) > 0) { | if (count($insert_values) > 0) { | |||
self::getClass('SiteAssociationManager') | self::getClass('SiteHostAssociationManager') | |||
->insertBatch( | ->insertBatch( | |||
$insert_fields, | $insert_fields, | |||
$insert_values | $insert_values | |||
); | ); | |||
} | } | |||
} | } | |||
} | } | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |