mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 13:41:52 +02:00
Fixes #3644 - type='country' displays 'Array()' when empty value is rendered.
This commit is contained in:
parent
a5058a7177
commit
6c3001233a
@ -198,7 +198,8 @@ class e_form
|
||||
|
||||
/**
|
||||
* 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?
|
||||
{
|
||||
@ -465,7 +466,7 @@ class e_form
|
||||
}
|
||||
|
||||
|
||||
return $c;
|
||||
return ($iso === null) ? $c : '';
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user