diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 60cf54fe5e4..6fb85c3363d 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -33,6 +33,7 @@ * \brief File of class with all html predefined components * \version $Id$ */ + $action = GETPOST("action"); /** @@ -82,7 +83,7 @@ class Form $ret.='
| '; $ret.=$langs->trans($text); $ret.=' | '; - if ($_GET['action'] != 'edit'.$htmlname && $perm) $ret.=''.img_edit($langs->trans('Edit'),1).' | '; + if ($action != 'edit'.$htmlname && $perm) $ret.=''.img_edit($langs->trans('Edit'),1).' | '; $ret.='