summaryrefslogtreecommitdiff
path: root/views/admin/modulelist.phtml
diff options
context:
space:
mode:
authordaniel <noreply@maennchen1.de>2026-09-16 15:02:32 +0200
committerdaniel <noreply@maennchen1.de>2026-09-16 15:02:32 +0200
commit32c0b971707d90d4c2643b58a81170b8b5065fa9 (patch)
treec253193f2caaf19c009dcc5d8ed5d84b9c444336 /views/admin/modulelist.phtml
parentec55f3e4012a85bf4979ff8508517f9054dd35d3 (diff)
parent039ba05e6c05863f51e79f36d78e4641a04f7479 (diff)
Merge remote-tracking branch 'origin/main'
# Conflicts: # src/changelog
Diffstat (limited to 'views/admin/modulelist.phtml')
-rw-r--r--views/admin/modulelist.phtml10
1 files changed, 6 insertions, 4 deletions
diff --git a/views/admin/modulelist.phtml b/views/admin/modulelist.phtml
index 537ff78..9704987 100644
--- a/views/admin/modulelist.phtml
+++ b/views/admin/modulelist.phtml
@@ -38,6 +38,8 @@
</thead>
<tbody>
<?php foreach ($wpsg_update_data['modulinfo'] as $modul_key => $modul_info) { ?>
+ <?php /* Installierte Modulversion; Module ohne deklariertes $version liefern null -> vor PHP-8-Warnungen und version_compare()-Deprecations schuetzen. */ ?>
+ <?php $modul_version_installed = ($this->shop->hasModInstalled($modul_key) ? ($this->shop->arAllModule[$modul_key]->version ?? '') : ''); ?>
<tr style="font-style:normal;" class="<?php
if ($modul_info['free'] === true) echo 'active';
@@ -66,7 +68,7 @@
<td>
<?php if ($this->shop->hasModInstalled($modul_key)) { ?>
- <?php echo $this->shop->arAllModule[$modul_key]->version; ?>
+ <?php echo $modul_version_installed; ?>
<?php } ?>
</td>
@@ -100,7 +102,7 @@
</td>
<td><?php
- if ($modul_info['active'] === true && $modul_info['version'] != $modul_info['version_latest'] && version_compare($modul_info['version_latest'], $this->shop->arAllModule[$modul_key]->version) < 0)
+ if ($modul_info['active'] === true && $modul_info['version'] != $modul_info['version_latest'] && version_compare($modul_info['version_latest'], $modul_version_installed) < 0)
{
echo $modul_info['version_latest'];
@@ -115,7 +117,7 @@
echo $modul_info['version'];
- if ($this->shop->hasModInstalled($modul_key) && $modul_info['version'] === $this->shop->arAllModule[$modul_key]->version)
+ if ($this->shop->hasModInstalled($modul_key) && $modul_info['version'] === $modul_version_installed)
{
echo ' - <strong class="wpsg_message_ok">'.__('aktuell', 'wpsg').'</strong>';
@@ -127,7 +129,7 @@
echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong><br />'.wpsg_translate(__('<a href="#1#">wpShopGermany Update</a> notwendig', 'wpsg'), WPSG_URL_WP.'wp-admin/plugins.php');
}
- else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], $this->shop->arAllModule[$modul_key]->version) > 0)
+ else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], $modul_version_installed) > 0)
{
echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong>';