Fixed 2 PHP errors