Skip to content

Commit

Permalink
[FINNA-2477] Fix calling member function on null.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Sep 4, 2024
1 parent ffb9991 commit bb168c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/finna2/templates/myresearch/cataloglogin.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<input class="btn btn-primary" type="submit" name="processLogin" value="<?=$this->transEscAttr('Save')?>">
</div>
</form>
<?php if (null !== $this->card->getId()): ?>
<?php if (null !== $this->card?->getId()): ?>
<?php
$language = $this->layout()->userLang;
if (!in_array($language, ['fi', 'sv', 'en-gb'])) {
Expand Down

0 comments on commit bb168c6

Please sign in to comment.