Skip to content

Commit

Permalink
Fix issue load category param when it is null
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Jul 24, 2024
1 parent 028f05a commit 5e6a280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/library/astroid/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ public function getCategoryParams()
$query = "SELECT `params` FROM `#__categories` WHERE `id`=" . $this->article->catid;
$db->setQuery($query);
$result = $db->loadObject();
if (!empty($result)) {
if (!empty($result) && !empty($result->params)) {
$params->loadString($result->params, 'JSON');
}
}
Expand Down

0 comments on commit 5e6a280

Please sign in to comment.