summaryrefslogtreecommitdiff
path: root/views/admin
diff options
context:
space:
mode:
authorjlbeer <noreply@maennchen1.de>2026-09-15 13:19:51 +0200
committerjlbeer <noreply@maennchen1.de>2026-09-15 13:19:51 +0200
commit8916fd40e2a1475cd92607f4ff40178798e9304e (patch)
tree41e7b1f927145fe08997ff03ab4e24d09dbca4b8 /views/admin
parent578fba55a87495d415aa6d3f132b63601cee456a (diff)
- Deprecated "version" Fehler behoben
- Kampagnen Fehler mit Bestellstatus behoben
Diffstat (limited to 'views/admin')
-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>';