diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 60eaae45c08..609c843e6a9 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -1,6 +1,6 @@
- * Copyright (C) 2004-2009 Laurent Destailleur
+ * Copyright (C) 2004-2010 Laurent Destailleur
* Copyright (C) 2004 Benoit Mortier
* Copyright (C) 2004 Sebastien Di Cintio
* Copyright (C) 2004 Eric Seigne
@@ -34,7 +34,7 @@
/**
* \class Form
- * \brief Classe permettant la generation de composants html
+ * \brief Class to manage generation of HTML components
* \remarks Only common components must be here.
*/
class Form
@@ -51,24 +51,24 @@ class Form
/**
- * \brief Constructor
- * \param DB Database handler
+ * Constructor
+ * @param $DB Database handler
*/
function Form($DB)
{
$this->db = $DB;
-
- return 1;
}
/**
- * \brief Output key field for an editable field
- * \param text Text of label
- * \param htmlname Name of select field
- * \param preselected Preselected value for parameter
- * \param paramkey Key of parameter (unique if there is several parameter to show)
- * \param perm Permission to allow button to edit parameter
- * \param typeofdata Type of data (string by default, email, ...)
+ * Output key field for an editable field
+ * @param text Text of label
+ * @param htmlname Name of select field
+ * @param preselected Preselected value for parameter
+ * @param paramkey Key of parameter (unique if there is several parameter to show)
+ * @param paramvalue Value of parameter
+ * @param perm Permission to allow button to edit parameter
+ * @param typeofdata Type of data (string by default, email, ...)
+ * @return string HTML edit field
*/
function editfieldkey($text,$htmlname,$preselected,$paramkey,$paramvalue,$perm,$typeofdata='string')
{
@@ -90,6 +90,7 @@ class Form
* \param paramkey Key of parameter (unique if there is several parameter to show)
* \param perm Permission to allow button to edit parameter
* \param typeofdata Type of data (string by default, email, ...)
+ * \return string HTML edit field
*/
function editfieldval($text,$htmlname,$preselected,$paramkey,$paramvalue,$perm,$typeofdata='string')
{
@@ -426,7 +427,7 @@ class Form
// If product & services are enabled or both disabled.
if ($forceall || ($conf->product->enabled && $conf->service->enabled)
- || (empty($conf->product->enabled) && empty($conf->service->enabled)))
+ || (empty($conf->product->enabled) && empty($conf->service->enabled)))
{
if (empty($hidetext)) print $langs->trans("Type").': ';
print '