diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/admin/modulelist.phtml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/views/admin/modulelist.phtml b/views/admin/modulelist.phtml index bfcf77e..59750bd 100644 --- a/views/admin/modulelist.phtml +++ b/views/admin/modulelist.phtml @@ -42,7 +42,7 @@ <?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 ?? '') : ''); ?>
- <?php if (isset($arBetaModule[$modul_key])) $modul_info['version'] = $modul_info['version_latest'] = $beta_version; ?>
+ <?php $modul_version_available = (isset($arBetaModule[$modul_key]))?$beta_version:$modul_info['version']; ?>
<tr style="font-style:normal;" class="<?php
if ($modul_info['free'] === true) echo 'active';
@@ -118,21 +118,21 @@ }
- echo $modul_info['version'];
+ echo $modul_version_available;
- if ($this->shop->hasModInstalled($modul_key) && $modul_info['version'] === $modul_version_installed)
+ if ($this->shop->hasModInstalled($modul_key) && $modul_version_available === $modul_version_installed)
{
echo ' - <strong class="wpsg_message_ok">'.__('aktuell', 'wpsg').'</strong>';
}
- else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], WPSG_VERSION) > 0)
+ else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_version_available, WPSG_VERSION) > 0)
{
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'], $modul_version_installed) > 0)
+ else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_version_available, $modul_version_installed) > 0)
{
echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong>';
|
