mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Refactor && Typo && Use plain objects as function parameters instead of ids
This commit is contained in:
@@ -371,7 +371,7 @@ class record_preview extends record_adapter
|
||||
[
|
||||
'final' => []
|
||||
, 'comment' => []
|
||||
, 'user' => $this->app['manipulator.user']->getRepository()->find($row['usr_id'])
|
||||
, 'user' => $row['usr_id'] ? $this->app['manipulator.user']->getRepository()->find($row['usr_id']) : null
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user