X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FHTMLForm.php;h=c14996541a196f6e292566841fe2335e450abc7c;hb=0f8843f4ecb657b4e1121d931399decda3d3be49;hp=e56ca2ee6a200367385d6e9b19d70c6811c5b466;hpb=ba7a5f70f40eaba6b7a7d343da200e1f0fb776b7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index e56ca2ee6a..c14996541a 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -333,6 +333,9 @@ class HTMLForm extends ContextSource { } $callback = $this->mSubmitCallback; + if ( !is_callable( $callback ) ) { + throw new MWException( 'HTMLForm: no submit callback provided. Use setSubmitCallback() to set one.' ); + } $data = $this->filterDataForSubmit( $this->mFieldData );