Update Gateway.php

notice fixed