Court rules on Ying Zhang case