DevHeads.net

com web/bugs: Attemt to fix pre-selected value: include/functions.php

Link: <a href="http://git.php.net/?p=web/bugs.git;a=commitdiff;h=5d86832595a5e694859f45aaaf554cf24a24af39" title="http://git.php.net/?p=web/bugs.git;a=commitdiff;h=5d86832595a5e694859f45aaaf554cf24a24af39">http://git.php.net/?p=web/bugs.git;a=commitdiff;h=5d86832595a5e694859f45...</a>

Log:
Attemt to fix pre-selected value

Changed paths:
M include/functions.php

Diff:
diff --git a/include/functions.php b/include/functions.php
index f22d7d2..31e5bf4 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -762,7 +762,7 @@ function show_package_options($current, $show_any, $default = '')
$child = $pseudo_pkgs[$name];
if ($show_any == 1 || $key != 'Any') {
echo "<option value=\"$name\"";
- if ((is_array($current) && in_array($key, $current)) || ($key == $current)) {
+ if ((is_array($current) && in_array($name, $current)) || ($name == $current)) {
echo ' selected="selected"';
}
// Show disabled categories with different background color in listing