//
// Apply one differential data set.
//
-function upgrade_step($index, $company, $conn)
+function upgrade_step($inst, $company, $conn)
{
- global $path_to_root, $installers;
+ global $path_to_root;
- $inst = $installers[$index];
$pref = $conn['tbpref'];
$ret = true;
// apply all upgrade data
foreach ($installers as $i => $inst)
{
- $ret = upgrade_step($i, $comp, $conn);
+
+ $ret = upgrade_step($installers[$index], $i, $comp, $conn);
if (!$ret)
{
display_error(