Update QuickForm.php

Bug fixes for createElement