We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25cba3b commit 9272ce1Copy full SHA for 9272ce1
components/com_content/src/Model/CategoryModel.php
@@ -335,7 +335,7 @@ public function getPagination()
335
public function getCategory()
336
{
337
if (!\is_object($this->_item)) {
338
- if (!empty($this->state->get('params'))) {
+ if (isset($this->state) && !empty($this->state->get('params'))) {
339
$params = $this->state->get('params');
340
$options = [];
341
$options['countItems'] = $params->get('show_cat_num_articles', 1) || !$params->get('show_empty_categories_cat', 0);
0 commit comments