Fix User_Adapter in preview short history

This commit is contained in:
Romain Neutron
2012-01-09 18:07:01 +01:00
parent cd28906c6b
commit e4016ccd2f

View File

@@ -375,11 +375,22 @@ class record_preview extends record_adapter
if (!isset($tab[$hour][$site][$action][$row['usr_id']])) if (!isset($tab[$hour][$site][$action][$row['usr_id']]))
{ {
$user = null;
try
{
$user = \User_Adapter::getInstance($row['usr_id'], $appbox);
}
catch (Exception $e)
{
}
$tab[$hour][$site][$action][$row['usr_id']] = $tab[$hour][$site][$action][$row['usr_id']] =
array( array(
'final' => array() 'final' => array()
, 'comment' => array() , 'comment' => array()
, 'user' => \User_Adapter::getInstance($row['usr_id'], $appbox) , 'user' => $user
); );
} }