As Kerikeri solo dad Neil Arthur Phillips entered the dock for sentencing on dope dealing charges, his two teenage sons rushed over from the public gallery to give him a hug.
Such contact between prisoners in the dock and those in the public gallery is usually frowned upon by the judiciary, but this spontaneous show of love helped save Phillips from going to jail by the "narrowest of margins".
Phillips, 49, appeared for sentencing in the High Court at Whangarei before Justice Paul Heath after earlier pleading guilty to six charges of selling cannabis and six of possessing cannabis for supply.
He was caught in Operation Dan, an undercover police sting targeting drug dealers from November 2011 to June this year.
Justice Heath said Phillips was an enigma who had two sides to his character. One was a loving father who had done a great job of bringing his two teenage boys up by himself - the other was a man who had alcohol and drug issues and took part in illegal activities.