Update BaseController.class.php

Fixed a small variable issue