diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 15dffd430db..8c1550bcb4c 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -9258,8 +9258,7 @@ class Form
* @param string $cancel_label Alternative label for cancel button
* @param array $morefields Add additional buttons between save and cancel
* @param bool $withoutdiv Option to remove enclosing centered div
- *
- * @return string
+ * @return string Html code with the buttons
*/
public function buttonsSaveCancel($save_label = 'Save', $cancel_label = 'Cancel', $morefields = array(), $withoutdiv = 0)
{
@@ -9293,24 +9292,10 @@ class Form
$retstring = $withoutdiv ? '': '
';
foreach ($buttons as $button) {
- $retstring .= $this->button($button['name'], $langs->trans($button['label_key']), $button['addclass']);
+ $retstring .= '';
}
$retstring .= $withoutdiv ? '': '
';
return $retstring;
}
-
- /**
- * Return a button (input submit)
- *
- * @param string $name Name
- * @param string $label Label of the button
- * @param string $addclass Additional css classes
- *
- * @return string
- */
- public function button($name, $label, $addclass = '')
- {
- return '';
- }
}
diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php
index 681a229bac0..325db34141d 100644
--- a/htdocs/user/class/user.class.php
+++ b/htdocs/user/class/user.class.php
@@ -660,7 +660,7 @@ class User extends CommonObject
* @param int $module Id of permission to add or 0 to add several permissions
* @param string $permlevel1 Permission level1
* @param string $permlevel2 Permission level2
- * @return int 1 if user has permission, 0 if not.
+ * @return int 1 if user has permission, 0 if not.
* @see clearrights(), delrights(), getrights(), hasRight()
*/
public function hasRight($module, $permlevel1, $permlevel2 = '')