Skip to content

Commit

Permalink
Do not try to access a module's title if there is none
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Meyer committed Mar 6, 2015
1 parent 4324385 commit d7dcbb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/views/scripts/config/module.phtml
Expand Up @@ -2,9 +2,6 @@
<?= $this->tabs ?>
</div>
<div class="content">
<h1 tabindex="-1">
<?= $this->escape($module->getTitle()) ?>
</h1>
<?php if (! $module): ?>
<?= $this->translate('There is no such module installed.') ?>
<?php return; endif ?>
Expand All @@ -14,6 +11,9 @@
$permissions = $module->getProvidedPermissions();
$state = $moduleData->enabled ? ($moduleData->loaded ? 'enabled' : 'failed') : 'disabled'
?>
<h1 tabindex="-1">
<?= $this->escape($module->getTitle()) ?>
</h1>
<table class="avp">
<tr>
<th><?= $this->escape($this->translate('Name')) ?></th>
Expand Down

0 comments on commit d7dcbb4

Please sign in to comment.