Fix USPS error having ® unformatted

master
Skylar Ittner 1 year ago
parent 9f8b1fa943
commit 5147fa6156

@ -45,7 +45,7 @@ class Tracking_USPS {
$trackinfo = $xml->TrackInfo; $trackinfo = $xml->TrackInfo;
} }
if (!empty($xml->TrackInfo->Error)) { if (!empty($xml->TrackInfo->Error)) {
throw new TrackingException((string) $xml->TrackInfo->Error->Description); throw new TrackingException(str_replace("<SUP>&reg;</SUP>", "®", (string) $xml->TrackInfo->Error->Description));
} }
} catch (TrackingException $ex) { } catch (TrackingException $ex) {
throw $ex; throw $ex;

Loading…
Cancel
Save