Update controller.php

More strict standards warnings.