Commit: 5d86832595a5e694859f45aaaf554cf24a24af39 Author: Johannes Schlüter <johan...@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 -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php