com web/bugs: Attemt to fix pre-selected value: include/functions.php
| From: | Johannes Schlüter | Date: | Thu, 09 Aug 2018 13:44:32 +0000 |
| Subject: | com web/bugs: Attemt to fix pre-selected value: include/functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-27228@lists.php.net to get a copy of this message | ||
Commit: 5d86832595a5e694859f45aaaf554cf24a24af39
Author: Johannes Schlüter <johannes@schlueters.de> Thu, 9 Aug 2018 15:44:32 +0200
Parents: 8fde831ad5017d41643965ac12888bf8529cdf5a
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=5d86832595a5e694859f45aaaf554cf24a24af39
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