PDO library returns proper boolean. We dont need string comparison

This commit is contained in:
marc tobias
2019-04-02 16:52:37 +02:00
parent 2a4198f94d
commit 2ab836c11c
5 changed files with 7 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ class AddressDetails
private static function isAddress($aLine)
{
return $aLine['isaddress'] == 't' || $aLine['type'] == 'country_code';
return $aLine['isaddress'] || $aLine['type'] == 'country_code';
}
public function getAddressDetails($bAll = false)
@@ -49,7 +49,7 @@ class AddressDetails
$sPrevResult = '';
foreach ($this->aAddressLines as $aLine) {
if ($aLine['isaddress'] == 't' && $sPrevResult != $aLine['localname']) {
if ($aLine['isaddress'] && $sPrevResult != $aLine['localname']) {
$sPrevResult = $aLine['localname'];
$aParts[] = $sPrevResult;
}