浏览代码

clean code

Frédéric FRANCE 2 年之前
父节点
当前提交
a7c5140fd6

+ 1 - 1
htdocs/core/boxes/box_last_knowledgerecord.php

@@ -171,7 +171,7 @@ class box_last_knowledgerecord extends ModeleBoxes
 					// Date creation
 					$this->info_box_contents[$i][$r] = array(
 						'td' => 'class="center nowraponall" title="'.dol_escape_htmltag($langs->trans("DateCreation").': '.dol_print_date($datec, 'dayhour', 'tzuserrel')).'"',
-						'text' => dol_print_date($objp->datec, 'dayhour', 'tzuserrel'),
+						'text' => dol_print_date($datec, 'dayhour', 'tzuserrel'),
 					);
 					$r++;
 

+ 1 - 1
htdocs/core/boxes/box_last_modified_knowledgerecord.php

@@ -171,7 +171,7 @@ class box_last_modified_knowledgerecord extends ModeleBoxes
 					// Date creation
 					$this->info_box_contents[$i][$r] = array(
 						'td' => 'class="center nowraponall" title="'.dol_escape_htmltag($langs->trans("DateCreation").': '.dol_print_date($datec, 'dayhour', 'tzuserrel')).'"',
-						'text' => dol_print_date($objp->datec, 'dayhour', 'tzuserrel'),
+						'text' => dol_print_date($datec, 'dayhour', 'tzuserrel'),
 					);
 					$r++;