lat9 / upsoauth

A Zen Cart UPS shipping module that makes use of UPS' RESTful/Oauth API
GNU General Public License v2.0
3 stars 3 forks source link

Correct PHP Fatal error (PHP 8.2) if handling fee is an empty string #17

Closed lat9 closed 1 year ago

lat9 commented 1 year ago

... seeing logs of the ilk

Stack trace:
#0 C:\xampp\htdocs\zc158\includes\modules\shipping\upsoauth\UpsOAuthApi.php(441): UpsOAuthApi->getCurrentMethodQuote(Array, '', 'UPS Next Day Ai...', '111.39', 1, '')
#1 C:\xampp\htdocs\zc158\includes\modules\shipping\upsoauth.php(326): UpsOAuthApi->getShippingMethodsFromQuotes('', Array)
#2 C:\xampp\htdocs\zc158\includes\classes\shipping.php(201): upsoauth->quote('')
#3 C:\xampp\htdocs\zc158\includes\modules\shipping_estimator.php(156): shipping->quote()
#4 C:\xampp\htdocs\zc158\includes\templates\bootstrap\templates\tpl_shopping_cart_default.php(220): require('C:\\xampp\\htdocs...')
#5 C:\xampp\htdocs\zc158\includes\templates\bootstrap\common\tpl_main_page.php(216): require('C:\\xampp\\htdocs...')
#6 C:\xampp\htdocs\zc158\index.php(94): require('C:\\xampp\\htdocs...')
#7 {main}
  thrown in C:\xampp\htdocs\zc158\includes\modules\shipping\upsoauth\UpsOAuthApi.php on line 461