Modify

Opened 13 years ago

Closed 11 years ago

Last modified 10 years ago

#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 H. H. H., 13 years ago

Owner: changed from H. H. H. to Ronald Parcinski
Status: newassigned

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

$category = array(); oben in der Datei entfernen
$image = ; vor dem dargestellten if Konstrukt positionieren.

comment:3 by H. H. H., 12 years ago

Owner: changed from Ronald Parcinski to H. H. H.

comment:4 by Gerhard Waldemair, 12 years ago

Milestone: modified-shop-2.00modified-shop-2.10
Version: 1.062.0

comment:5 by Gerhard Waldemair, 11 years ago

Resolution: fixed
Status: assignedclosed

sollte soweit gelöst sein.

comment:6 by Torsten Riemer, 10 years ago

Milestone: modified-shop-2.10modified-shop-2.00

Modify Ticket

Action
as closed The owner will remain H. H. H..
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.