diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php
index 1f976404f56..f78ac8c2585 100644
--- a/htdocs/projet/class/project.class.php
+++ b/htdocs/projet/class/project.class.php
@@ -2381,7 +2381,7 @@ class Project extends CommonObject
*/
public function getKanbanView($option = '')
{
- global $langs,$db,$user;
+ global $langs,$user;
$return = '
';
$return .= '
';
$return .= '';
@@ -2392,7 +2392,7 @@ class Project extends CommonObject
$return .= ''.(method_exists($this, 'getNomUrl') ? $this->getNomUrl() : $this->ref).'';
if (property_exists($this, 'date_start_event')) {
$return .= '
'.$langs->trans("DateStart").'';
- $return .= ' : '.dol_print_date($db->jdate($this->date_start_event), 'day').'>';
+ $return .= ' : '.dol_print_date($this->db->jdate($this->date_start_event), 'day').'>';
}
if (property_exists($this, 'user_author_id')) {
$return .= '
'.$langs->trans("Author").'';