diff --git a/htdocs/core/class/dolgraph.class.php b/htdocs/core/class/dolgraph.class.php
index 81fc746874d..16f1689af87 100644
--- a/htdocs/core/class/dolgraph.class.php
+++ b/htdocs/core/class/dolgraph.class.php
@@ -1668,7 +1668,7 @@ class DolGraph
global $langs;
if ($shownographyet) {
- $s = '
';
+ $s = '';
$s .= '';
if (is_numeric($shownographyet)) {
$s .= $langs->trans("NotEnoughDataYet") . '...';
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index ac93d057801..992f0e736c1 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -11996,6 +11996,8 @@ class Form
$ret .= '