- time2str("%D", $cust_pkg->getfield('setup') ),
- time2str("%D", $cust_pkg->getfield('bill') ),
- time2str("%D", $cust_pkg->getfield('susp') ),
- time2str("%D", $cust_pkg->getfield('expire') ),
- time2str("%D", $cust_pkg->getfield('cancel') ),
+ $cust_pkg->getfield('setup')
+ ? time2str("%D", $cust_pkg->getfield('setup') )
+ : '',
+ $cust_pkg->getfield('bill')
+ ? time2str("%D", $cust_pkg->getfield('bill') ),
+ : '',
+ $cust_pkg->getfield('susp')
+ ? time2str("%D", $cust_pkg->getfield('susp') ),
+ : '',
+ $cust_pkg->getfield('expire')
+ ? time2str("%D", $cust_pkg->getfield('expire') ),
+ : '',
+ $cust_pkg->getfield('cancel')
+ ? time2str("%D", $cust_pkg->getfield('cancel') ),
+ : '',