From f33ee9a1c3401c515b67cdf614bb921d89589d88 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 29 Jun 2009 07:01:07 +0000 Subject: [PATCH] BUGFIX Fixed "method is not a string" error in Form::httpSubmission() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@80380 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/Form.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/forms/Form.php b/forms/Form.php index 97538183c..c8a215f08 100644 --- a/forms/Form.php +++ b/forms/Form.php @@ -242,7 +242,9 @@ class Form extends RequestHandler { // Otherwise, try a handler method on the form object } else { - return $this->$funcName($vars, $this, $request); + if($this->hasMethod($funcName)) { + return $this->$funcName($vars, $this, $request); + } } }