Opened 4 years ago
Last modified 3 years ago
#2147 new Bug/Fehler
includes/modules/product_listing.php — at Initial Version
| Reported by: | Volker Strähle | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.9.0 |
| Component: | Shop | Version: | 2.0.6.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
in findets sich auf ca. Zeile 268 folgender Code-Abschnitt:
} elseif (isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] > 0) {
$manufacturers_array = xtc_get_manufacturers();
trigger_error('DEBUG $manufacturers_array: '.print_r($manufacturers_array,true),E_USER_ERROR);
if (isset($manufacturers_array[(int)$_GET['manufacturers_id']])
&& $manufacturers_array[(int)$_GET['manufacturers_id']]['manufacturers_name'] != ''
&& $manufacturers_array[(int)$_GET['manufacturers_id']]['manufacturers_description'] != ''
)
{
$manufacturer = $manufacturers_array[(int)$_GET['manufacturers_id']];
Die Prüfung auf eine vorhandene Beschreibung führt zu einem site_error "Hersteller nicht gefunden". Tatsächlich ist der Hersteller aber vorhanden.
Besser wäres es den Hersteller mit Name und Logo trotzdem anzuzeigen und lieber die Fehlermeldung anzupassen "Aktuell sind keine Artikel dieses Herstellers im Shop vorhanden."
Note:
See TracTickets
for help on using tickets.
