From 24436b550d4da62910602bbab23f44f394de5f56 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Thu, 14 Sep 2017 12:01:32 +0200
Subject: [PATCH] Update time.php

---
 htdocs/projet/tasks/time.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php
index 79fc8aeafcb..4f27ce5af5f 100644
--- a/htdocs/projet/tasks/time.php
+++ b/htdocs/projet/tasks/time.php
@@ -453,7 +453,7 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0)
 			
 		    // Third party
 	    	$morehtmlref.=$langs->trans("ThirdParty").': ';
-	    	if (!empty($projectstatic->thirdparty)) {
+	    	if (is_object($projectstatic->thirdparty)) {
 	    		$morehtmlref.=$projectstatic->thirdparty->getNomUrl(1);
 	    	}
 		    $morehtmlref.='</div>';
@@ -464,7 +464,7 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0)
 		print '<div class="fichecenter">';
 		print '<div class="fichehalfleft">';
 
-        print '<div class="underbanner clearboth"></div>';
+        	print '<div class="underbanner clearboth"></div>';
 		print '<table class="border" width="100%">';
 
 		// Date start - Date end
-- 
GitLab