mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:18 +01:00
fix TypeError param #2 of array_search must be array, null given
This commit is contained in:
parent
8dd6dcf97c
commit
c5f671dcaf
@ -2661,7 +2661,7 @@ class addressbook_ui extends addressbook_bo
|
||||
if (!empty($content[$c_prefix.'_region']) && !empty($content[$c_prefix.'_countrycode']))
|
||||
{
|
||||
$states = Api\Country::get_states($content[$c_prefix.'_countrycode']);
|
||||
if (($key = array_search($content[$c_prefix.'_region'], $states)))
|
||||
if ($states && ($key = array_search($content[$c_prefix.'_region'], $states)))
|
||||
{
|
||||
$content[$c_prefix.'_region'] = $key;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user