Modify ↓
#7 closed Bug/Fehler (fixed)
Unsauberkeit in /includes/modules/product_listing.php
| Reported by: | Ronald Parcinski | Owned by: | H. H. H. |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.0.0 |
| Component: | Shop | Version: | 2.0.0.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Wir haben noch ein Unsauberkeit im Code. Bei der erweiterten Suche ergibt
$category = xtc_db_fetch_array($category_query,true)
ein FALSE, normal ist aber ein array()
Vorschlag, damit $category immer ein Array ist:
if ($category = xtc_db_fetch_array($category_query,true)) {
$image = '';
if ($category['categories_image'] != '') {
$image = DIR_WS_IMAGES.'categories/'.$category['categories_image'];
if(!file_exists($image)) $image = DIR_WS_IMAGES.'categories/noimage.gif';
}
} else {
$category = array();
}
Attachments (0)
Change History (5)
comment:2 by , 13 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:3 by , 12 years ago
| Owner: | changed from to |
|---|
comment:4 by , 12 years ago
| Milestone: | modified-shop-2.00 → modified-shop-2.10 |
|---|---|
| Version: | 1.06 → 2.0 |
comment:5 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
sollte soweit gelöst sein.
comment:6 by , 10 years ago
| Milestone: | modified-shop-2.10 → modified-shop-2.00 |
|---|
Note:
See TracTickets
for help on using tickets.

Ich hatte schon mit web28 telefoniert und ihm eine verbesserte Version der product_listing.php geschickt.