diff --git a/include/admin/PhorumInputForm.php b/include/admin/PhorumInputForm.php index 9ad733293..3f17956b5 100644 --- a/include/admin/PhorumInputForm.php +++ b/include/admin/PhorumInputForm.php @@ -39,7 +39,7 @@ class PhorumInputForm { var $_submit; var $_help; - function PhorumInputForm ( $action = "", $method = "get", $submit = "Submit", $target = "", $enctype = "", $events = array() ) + function __construct($action = "", $method = "get", $submit = "Submit", $target = "", $enctype = "", $events = array()) { $this->_action = ( empty( $action ) ) ? $_SERVER["PHP_SELF"] : $action; $this->_method = $method; @@ -208,7 +208,7 @@ function show() { global $PHORUM; - if(count($this->_help)){ + if (is_array($this->_help) && count($this->_help)) { echo "