"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/web/lib/plugins/site/hooks/addsitegroup.hook.php" between
fogproject-1.5.5.tar.gz and fogproject-1.5.6.tar.gz

About: FOG is a Linux-based network computer cloning solution for Windows, Mac OSX and various Linux distributions that ties together a few open-source tools with a PHP-based web interface. FOG doesn’t use any boot disks, or CDs; everything is done via TFTP and PXE.

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)