Как в поле плательщик убрать лишние запятые, когда поля адреса и города не заполнены покупателем?
if ($chelpay == 'chelpay_company'){
if ($address['payment_company']){
$this->data['addrp'] = $address['payment_company'] . ", " . $address['payment_city'] . ", " . $address['payment_address_1'] . " " . $address['payment_address_2'];
}
else{
$this->data['addrp'] = $address['payment_firstname'] . " " . $address['payment_lastname'] . ", " . $address['payment_city'] . ", " . $address['payment_address_1'] . " " . $address['payment_address_2'];
}