Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
helly25 committed Aug 10, 2003
1 parent 726eb46 commit 2a13d3f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -1082,16 +1082,12 @@ function settings2array($settings, &$ini_settings)

function settings2params(&$ini_settings)
{
if (count($ini_settings)) {
$settings = '';
foreach($ini_settings as $name => $value) {
$value = addslashes($value);
$settings .= " -d \"$name=$value\"";
}
$ini_settings = $settings;
} else {
$ini_settings = '';
$settings = '';
foreach($ini_settings as $name => $value) {
$value = addslashes($value);
$settings .= " -d \"$name=$value\"";
}
$ini_settings = $settings;
}

function compute_summary()
Expand Down

0 comments on commit 2a13d3f

Please sign in to comment.