Update Prepare.php

Fix bug with undefined variable
Merge pull request #1 from vdubyna/master

Update Prepare.php