From e4fed62e45cbdb00ec787fa168888bde19cdbe04 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sat, 14 Jan 2023 20:20:31 -0700 Subject: [PATCH] Output USPS event code if unknown --- lib/Tracking_USPS.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Tracking_USPS.lib.php b/lib/Tracking_USPS.lib.php index 6efacad..eccd9f1 100644 --- a/lib/Tracking_USPS.lib.php +++ b/lib/Tracking_USPS.lib.php @@ -138,7 +138,7 @@ class Tracking_USPS { } $info->appendHistoryEntry(new TrackingEntry( TrackingStatus::USPSEventCodeToStatus((string) $history->EventCode), - ((string) $history->Event), + ((string) $history->Event) . (TrackingStatus::USPSEventCodeToStatus((string) $history->EventCode) == TrackingStatus::TRACKING_STATUS_UNKNOWN ? " " . (string) $history->EventCode : ""), $datetime, $location, TrackingStatus::isUSPSEventCodeContainerScan((string) $history->EventCode)));