com web/php: Fixes missing UG-list with unknown country: ug.php
| From: | Paul Dragoonis | 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-22131@lists.php.net to get a copy of this message | ||
Commit: 7842990851f701519711158ed50c8cfc63c991ef
Author: Andreas Heigl <andreas@heigl.org> Thu, 27 Mar 2014 21:20:22 +0100
Parents: b4b3abf258bcd1f3bac1cdccf66b3bb385e65fc3
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=7842990851f701519711158ed50c8cfc63c991ef
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 {