Fix USPS error having ® unformatted
This commit is contained in:
parent
9f8b1fa943
commit
5147fa6156
@ -45,7 +45,7 @@ class Tracking_USPS {
|
||||
$trackinfo = $xml->TrackInfo;
|
||||
}
|
||||
if (!empty($xml->TrackInfo->Error)) {
|
||||
throw new TrackingException((string) $xml->TrackInfo->Error->Description);
|
||||
throw new TrackingException(str_replace("<SUP>®</SUP>", "®", (string) $xml->TrackInfo->Error->Description));
|
||||
}
|
||||
} catch (TrackingException $ex) {
|
||||
throw $ex;
|
||||
|
Loading…
x
Reference in New Issue
Block a user