diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index 4ac3eb99c50..9cb402cfc89 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -37,8 +37,8 @@
*/
class FormOther
{
- var $db;
- var $error;
+ private $db;
+ public $error;
/**