Skip to content

Commit

Permalink
MDL-19756 better broken param diag
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 27, 2009
1 parent da65c53 commit 5db2b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/outputlib.php
Expand Up @@ -2435,7 +2435,7 @@ public function confirm($message, $continue, $cancel) {
* @return string HTML fragment
*/
public function button($form) {
if (empty($form->button)) {
if (empty($form->button) or !($form->button instanceof html_button)) {
throw new coding_exception('$OUTPUT->button($form) requires $form to have a button (html_button) value');
}

Expand Down

0 comments on commit 5db2b59

Please sign in to comment.