Skip to content

Commit

Permalink
Fix issue Author Info return null value #670
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed May 6, 2024
1 parent aba4042 commit abfbc8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/frontend/blog/modules/author_info.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

// Get User Details
$user = Factory::getContainer()->get(UserFactoryInterface::class)->loadUserById($article->created_by);

if (empty($user)) {
return false;
}
$params = new Registry();
$params->loadString($user->params, 'JSON');
// Get social profiles
Expand Down

0 comments on commit abfbc8c

Please sign in to comment.