Modify

Opened 7 years ago

Closed 7 years ago

#1500 closed Bug/Fehler (fixed)

E_WARNING in includes/classes/table_block.php durch admin/modules.php

Reported by: info@… Owned by: somebody
Priority: niedrig Milestone: modified-shop-2.0.5.0
Component: Admin Version: 2.0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

Hallo,

folgender Code in "admin/modules.php" der Shopversion 2.0.4.1 verursacht Warnungen die sich vermeiden lassen:

Zeile 541:
$contents[] = method_exists($module,'display') ? $module->display() : '';

Zeile 543:
$contents[] = method_exists($module,'display_end') ? $module->display_end() : '';

Ändern lässt sich das, indem die Anstelle des leeren Strings ein leeres Array im else-Zweig eingefügt wird

$contents[] = method_exists($module,'display') ? $module->display() : array();
$contents[] = method_exists($module,'display_end') ? $module->display_end() : array();

Oder die method_exists-Prüfung verlagert wird

if(method_exists($module,'display'))
  $contents[] = $module->display();

if(method_exists($module,'display_end'))
$contents[] = $module->display_end() : '';

Attachments (0)

Change History (2)

comment:1 by anonymous, 7 years ago

Ist das nicht das gleiche, wie in Ticket #1474 ?

comment:2 by Gerhard Waldemair, 7 years ago

Resolution: fixed
Status: newclosed

In 11706:

fix #1500

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.