mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Fix User_Adapter in preview short history
This commit is contained in:
@@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user