Update vote.class.php

Fix bug with vote creation for a new thread
Merge pull request #7 from proxyfabio/master

Update vote.class.php