1
0
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:
Cameron
2019-01-31 13:28:58 -08:00
parent a5058a7177
commit 6c3001233a

View File

@@ -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 : '';
} }