Update gravity_forms.php

Make sure class is defined before we try and use it - prevents a PHP warning