| @@ 168-174 (lines=7) @@ | ||
| 165 | ||
| 166 | //results |
|
| 167 | foreach($this->results as $row) { |
|
| 168 | if (api_is_western_name_order()) { |
|
| 169 | $data .= str_replace("\r\n",' ',api_html_entity_decode(strip_tags($row['first_name']), ENT_QUOTES, $charset)).';'; |
|
| 170 | $data .= str_replace("\r\n",' ',api_html_entity_decode(strip_tags($row['last_name']), ENT_QUOTES, $charset)).';'; |
|
| 171 | } else { |
|
| 172 | $data .= str_replace("\r\n",' ',api_html_entity_decode(strip_tags($row['last_name']), ENT_QUOTES, $charset)).';'; |
|
| 173 | $data .= str_replace("\r\n",' ',api_html_entity_decode(strip_tags($row['first_name']), ENT_QUOTES, $charset)).';'; |
|
| 174 | } |
|
| 175 | ||
| 176 | $data .= str_replace("\r\n",' ',api_html_entity_decode(strip_tags($row['email']), ENT_QUOTES, $charset)).';'; |
|
| 177 | ||
| @@ 362-368 (lines=7) @@ | ||
| 359 | ||
| 360 | //results |
|
| 361 | foreach ($this->results as $row) { |
|
| 362 | if (api_is_western_name_order()) { |
|
| 363 | $data .= str_replace("\r\n",' ',api_html_entity_decode(strip_tags($row['first_name']), ENT_QUOTES, $charset)).';'; |
|
| 364 | $data .= str_replace("\r\n",' ',api_html_entity_decode(strip_tags($row['last_name']), ENT_QUOTES, $charset)).';'; |
|
| 365 | } else { |
|
| 366 | $data .= str_replace("\r\n",' ',api_html_entity_decode(strip_tags($row['last_name']), ENT_QUOTES, $charset)).';'; |
|
| 367 | $data .= str_replace("\r\n",' ',api_html_entity_decode(strip_tags($row['first_name']), ENT_QUOTES, $charset)).';'; |
|
| 368 | } |
|
| 369 | ||
| 370 | // Official code |
|
| 371 | if ($officialCodeInList === 'true') { |
|