Opened 3 years ago

Closed 3 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

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 Changed 3 years ago by anonymous

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

comment:2 Changed 3 years ago by GTB

  • Resolution set to fixed
  • Status changed from new to closed

In 11706:

fix #1500

Add Comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.