Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Fixed error when viewing item page for non-existing item
Browse files Browse the repository at this point in the history
Change-Id: I5c4a13a2c5b7deddcfd184d54b8cf33c59104f2d
  • Loading branch information
JeroenDeDauw committed Jul 26, 2012
1 parent 359e986 commit dd34855
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions repo/includes/actions/ViewItemAction.php
Expand Up @@ -25,11 +25,15 @@ class ViewItemAction extends ViewEntityAction {
public function show() {
parent::show();

ItemView::registerJsConfigVars(
$this->getOutput(),
$this->getContent(),
$this->getLanguage()->getCode()
);
$content = $this->getContent();

if ( !is_null( $content ) ) {
ItemView::registerJsConfigVars(
$this->getOutput(),
$this->getContent(),
$this->getLanguage()->getCode()
);
}
}

}

0 comments on commit dd34855

Please sign in to comment.