The Situation Stone Cold Sobriety Ordered by Court

9/24/2014 2:50 PM PDT

The Situation -- Stone Cold Sobriety Ordered by Court

The Situation won't be celebrating his release from jail with a beer or a glass of wine -- a federal judge has ordered him to lay off booze and drugs as a condition of his release.

TMZ broke the story ... Mike "The Situation" Sorrentino and his brother were indicted for tax fraud Wednesday morning, and turned themselves in to federal authorities in NJ. Mike has since been released on $250,000 bond.

TMZ has learned he will also be subject to random drug testing, and is prohibited from drinking any alcohol ... pending his trial. Mike's attorney says the sobriety condition was put in place because Mike went to rehab back in 2012 for pain pills.

Sitch claims he's been clean since rehab, anyway ... so it shouldn't be an issue. He also has to surrender his passports and can't leave New York or New Jersey without permission.