Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed PHP error when parsing states_provinces and provinces_states as…

… a tag pair
  • Loading branch information...
commit 57acb2a1068e491ec89ac0f1702c1d4435249858 1 parent edb9bff
@amphibian authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 third_party/reegion_select/pi.reegion_select.php
View
4 third_party/reegion_select/pi.reegion_select.php
@@ -21,7 +21,7 @@
$plugin_info = array(
'pi_name' => 'REEgion Select',
- 'pi_version' => '2.0.4',
+ 'pi_version' => '2.0.5',
'pi_author' => 'Derek Hogue',
'pi_author_url' => 'http://github.com/amphibian/reegion_select.ee2_addon',
'pi_description' => 'Displays a drop down select menu of countries, US states, Canadian provinces, or UK counties.',
@@ -122,7 +122,7 @@ function _display($list, $name)
// (multidimensional array so we get optgroups)
foreach($label as $sp_k => $sp_label)
{
- $val = ($type == 'alpha2' || $style == 'linear') ? $sp_k : $sp_label;
+ $val = ((isset($type) && $type == 'alpha2') || $style == 'linear') ? $sp_k : $sp_label;
if(
($show == FALSE || in_array($val, explode('|', $show))) &&
($hide == FALSE || !in_array($val, explode('|', $hide)))
Please sign in to comment.
Something went wrong with that request. Please try again.