WWE Hall of Famer Tammy Sytch -- aka Sunny -- just caught a HUUUUGGGE break in her triple DUI case ... avoiding serious jail time thanks to her 97 days in rehab.
Sytch appeared in court in Pennsylvania on Thursday to be sentenced for the three DUI convictions she racked up in 2015.
Each DUI carried a maximum of 90 days in jail -- but Sytch pulled off a miracle in court.
The judge sentenced her to a grand total of 90 days in jail for all 3 DUIs -- but gave her jail credit for the 97 days she spent in a rehab center earlier this year .