From d368f3605b5c75b461c88bb7084e97ce1c4cb8c9 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Wed, 11 Apr 2012 17:20:49 +1200 Subject: [PATCH] MINOR: Remove default paramenter from handleRequest() so it complies with the interface correctly. Fixes E_STRICT warning. --- control/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/Controller.php b/control/Controller.php index 8071387dd..b4ab3a920 100644 --- a/control/Controller.php +++ b/control/Controller.php @@ -122,7 +122,7 @@ class Controller extends RequestHandler implements TemplateGlobalProvider { * @return SS_HTTPResponse The response that this controller produces, * including HTTP headers such as redirection info */ - function handleRequest(SS_HTTPRequest $request, DataModel $model = null) { + function handleRequest(SS_HTTPRequest $request, DataModel $model) { if(!$request) user_error("Controller::handleRequest() not passed a request!", E_USER_ERROR); $this->pushCurrent();