Skip to content

Commit

Permalink
Ticket #4803 - Comments: PHP error on view comment page without neces…
Browse files Browse the repository at this point in the history
…sary parameters.
  • Loading branch information
AntonLV committed Sep 13, 2024
1 parent 2a93c2e commit 81eedac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion template/scripts/BxBaseCmtsPageView.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ protected function _isAvailablePage ($a)

public function getCode()
{
BxDolTemplate::getInstance()->setPageUrl($this->_oCmts->getViewUrl($this->_iCmtId));
if($this->_oCmts)
BxDolTemplate::getInstance()->setPageUrl($this->_oCmts->getViewUrl($this->_iCmtId));

return parent::getCode();
}
Expand Down

0 comments on commit 81eedac

Please sign in to comment.