com web/php: Fixes missing UG-list with unknown country: ug.php

From: Date: Thu, 27 Mar 2014 20:20:22 +0000
Subject: com web/php: Fixes missing UG-list with unknown country: ug.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-18625@lists.php.net to get a copy of this message
Commit: 83678ecb1f28391a92b841e4bbfa37b97adfdb54 Author: Andreas Heigl <andreas@heigl.org> Thu, 27 Mar 2014 21:20:22 +0100 Parents: 3fcbf8d60de18591b7e4ec5d8ecc71d5d960f4b3 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=83678ecb1f28391a92b841e4bbfa37b97adfdb54 Log: Fixes missing UG-list with unknown country This change fixes an issue where users without a known IP-address didn't get to see the list of usergroups Changed paths: M ug.php Diff: diff --git a/ug.php b/ug.php index d485eaf..28a3d48 100644 --- a/ug.php +++ b/ug.php @@ -100,8 +100,8 @@ function print_ug_matches($matches) { $country = isset($_GET["cc"]) ? $_GET["cc"] : $COUNTRY; $allcountries = array(); +$matches = get_usergroups_in($country, $allcountries); if (isset($COUNTRIES_ALPHA2[$country])) { - $matches = get_usergroups_in($country, $allcountries); print_cc_header($country); print_ug_matches($matches); } else {

« previous php.webmaster (#18625) next »