mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Fixes #3644 - type='country' displays 'Array()' when empty value is rendered.
This commit is contained in:
@@ -198,7 +198,8 @@ class e_form
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of countries.
|
* Get a list of countries.
|
||||||
* @param null $iso
|
* @param null|string $iso ISO code.
|
||||||
|
* @return array|mixed|string
|
||||||
*/
|
*/
|
||||||
public function getCountry($iso=null) // move to parser?
|
public function getCountry($iso=null) // move to parser?
|
||||||
{
|
{
|
||||||
@@ -465,7 +466,7 @@ class e_form
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $c;
|
return ($iso === null) ? $c : '';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user