Skip to content

Commit

Permalink
fix: undefined var on the statistics page
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Mar 9, 2024
1 parent d9bd64a commit 3822b1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
$version = "v1.15.1";
$version = "v1.15.2";
?>
4 changes: 2 additions & 2 deletions stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,13 @@ function getPriceConverted($price, $currency, $database) {
<span><?= CurrencyFormatter::format($mostExpensiveSubscription['price'], $code) ?></span>
<div class="title"><?= translate('most_expensive', $i18n) ?></div>
<?php
if ($mostExpensiveSubscription['logo']) {
if (isset($mostExpensiveSubscription['logo']) && $mostExpensiveSubscription['logo'] != '') {
?>
<div class="subtitle">
<img src="images/uploads/logos/<?= $mostExpensiveSubscription['logo'] ?>" alt="<?= $mostExpensiveSubscription['name'] ?>" title="<?= $mostExpensiveSubscription['name'] ?>" />
</div>
<?php
} else {
} else if (isset($mostExpensiveSubscription['name']) && $mostExpensiveSubscription['name'] != ''){
?>
<div class="subtitle"><?= $mostExpensiveSubscription['name'] ?></div>
<?php
Expand Down

0 comments on commit 3822b1c

Please sign in to comment.