Exemplo n.º 1
0
 public static function removeEmptyFields($name = '', $address = '', $state = '', $zipcode = '', $location = '', $flag = '', $country = '', $address)
 {
     if (empty($name)) {
         $address = Countries::checkAddressString('%NAME%', '', $address);
     }
     if (empty($address)) {
         $address = Countries::checkAddressString('%ADDRESS%', '', $address);
     }
     if (empty($state)) {
         $address = Countries::checkAddressString('%STATE%', '', $address);
     }
     if (empty($zipcode)) {
         $address = Countries::checkAddressString('%ZIPCODE%', '', $address);
     }
     if (empty($location)) {
         $address = Countries::checkAddressString('%LOCATION%', '', $address);
     }
     if (empty($flag)) {
         $address = Countries::checkAddressString('%FLAG%', '', $address);
     }
     if (empty($country)) {
         $address = Countries::checkAddressString('%COUNTRY%', '', $address);
     }
     return $address;
 }