Fixed PHP notice
Merge pull request #313 from Bladrak/fixNotice

Fixed PHP notice