Modify

Opened 3 years ago

Closed 3 years ago

#2396 closed Bug/Fehler (fixed)

undefined Index Notice in /includes/modules/product_reviews.php

Reported by: noRiddle Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.8.0
Component: Shop Version: 2.0.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

Es kann vorkommen, daß das Array $shop_content_data leer ist, weshalb in folgendem Code abgefragt werden sollte, ob $shop_content_data['content_title'] gesetzt ist.

    if (defined('REVIEWS_PURCHASED_INFOS') && REVIEWS_PURCHASED_INFOS != '') {
      $shop_content_data = $main->getContentData(REVIEWS_PURCHASED_INFOS);
      $module_smarty->assign('reviews_note', $main->getContentLink(REVIEWS_PURCHASED_INFOS, $shop_content_data['content_title'], $request_type, false));
    }

Wenn man z.B. Kundengruppen aktiviert hat und nicht allen Kundengruppen die Sichtrechte im Content REVIEWS_PURCHASED_INFOS vergibt, ist das genannte Array dann leer wenn ein Kunde mit einer solchen KG ein Produkt aufruft.

Gruß,
noRiddle

Attachments (0)

Change History (1)

comment:1 by Gerhard Waldemair, 3 years ago

Resolution: fixed
Status: newclosed

In 14792:

fix #2396 - check for existing content

Modify Ticket

Action
as closed The owner will remain somebody.
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.