- $this->infos['client'] = array_map('replace_accent', array_merge($info_client, $res->fetchOneAssoc()));
- list($this->infos['client']['address1'], $this->infos['client']['address2']) =
- explode("\n", Geocoder::getFirstLines($this->infos['client']['text'],
+ if(is_array($res)) {
+ $this->infos['client'] = array_map('replace_accent', array_merge($info_client, $res->fetchOneAssoc()));
+ list($this->infos['client']['address1'], $this->infos['client']['address2']) =
+ explode("\n", Geocoder::getFirstLines($this->infos['client']['text'],