diff --git a/htdocs/langs/en_US/projects.lang b/htdocs/langs/en_US/projects.lang
index 33dc5fec8bf07d8cd468bfb34afb5c9ccaeaa736..bea6366a180fe71abc4404f36b9b03c990c1c840 100755
--- a/htdocs/langs/en_US/projects.lang
+++ b/htdocs/langs/en_US/projects.lang
@@ -81,6 +81,7 @@ ProjectsDedicatedToThisThirdParty=Projects dedicated to this third party
 NoTasks=No tasks for this project
 LinkedToAnotherCompany=Linked to other third party
 TaskIsNotAffectedToYou=Task not allocated to you
+ErrorTimeSpentIsEmpty=Time spent is empty
 ##### Types de contacts #####
 TypeContact_project_internal_PROJECTLEADER=Project leader
 TypeContact_project_external_PROJECTLEADER=Project leader
diff --git a/htdocs/langs/fr_FR/projects.lang b/htdocs/langs/fr_FR/projects.lang
index fb5cbbf6765921cc1f9ab4309aa5fa5027668975..26afe2ff6a9a7c6d8b7394eff4e7938996966f92 100755
--- a/htdocs/langs/fr_FR/projects.lang
+++ b/htdocs/langs/fr_FR/projects.lang
@@ -81,6 +81,7 @@ ProjectsDedicatedToThisThirdParty=Projets dédiés à ce tiers
 NoTasks=Aucune tâche pour ce projet
 LinkedToAnotherCompany=Liés à autre société
 TaskIsNotAffectedToYou=Tâche qui ne vous est pas affectée
+ErrorTimeSpentIsEmpty=Le temps consommé n'est pas renseigné
 ##### Types de contacts #####
 TypeContact_project_internal_PROJECTLEADER=Chef de projet
 TypeContact_project_external_PROJECTLEADER=Chef de projet
diff --git a/htdocs/projet/activity/list.php b/htdocs/projet/activity/list.php
index 163aea4266471cdfdb32393ca2a7487772b950be..8e1cc328ef9aba4ecbf19bb86958feecb9ba0524 100644
--- a/htdocs/projet/activity/list.php
+++ b/htdocs/projet/activity/list.php
@@ -75,7 +75,7 @@ if ($_POST["action"] == 'addtime' && $user->rights->projet->creer)
  		}
 	}
 	
-	if ($timespent_duration > O)
+	if ($timespent_duration > 0)
 	{
 		$task->fetch($id);
 		$task->timespent_duration = $timespent_duration;