Update Thread.php

vars folder was not created