diff --git a/main/inc/lib/pear/HTML/Common.php b/main/inc/lib/pear/HTML/Common.php index 53fd5d5061..80766c4f96 100755 --- a/main/inc/lib/pear/HTML/Common.php +++ b/main/inc/lib/pear/HTML/Common.php @@ -77,7 +77,7 @@ class HTML_Common * @param int $tabOffset Indent offset in tabs * @access public */ - function HTML_Common($attributes = null, $tabOffset = 0) + public function HTML_Common($attributes = null, $tabOffset = 0) { $this->setAttributes($attributes); $this->setTabOffset($tabOffset); @@ -134,7 +134,7 @@ class HTML_Common * @return string * @access private */ - function _getAttrString($attributes) + public function _getAttrString($attributes) { $strAttr = ''; @@ -143,16 +143,15 @@ class HTML_Common foreach ($attributes as $key => $value) { // Modified by Ivan Tcholakov, 16-MAR-2010 $value = @htmlspecialchars($value, ENT_COMPAT, $charset); - $strAttr .= ' ' . $key . ' = "' . $value. '"'; + $strAttr .= ' ' . $key . '= "' . $value. '"'; } } - return $strAttr; - } // end func _getAttrString + } /** - * Returns a valid atrributes array from either a string or array - * @param mixed $attributes Either a typical HTML attribute string or an associative array + * Returns a valid attributes array from either a string or array + * @param mixed $attributes Either a typical HTML attribute string or an associative array * @access private * @return array */ @@ -470,5 +469,4 @@ class HTML_Common } return $charset; } // end func charset -} // end class HTML_Common -?> +}