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-
Component: Admin Version:



folgender Code in "admin/modules.php" der Shopversion 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

  $contents[] = $module->display();

$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

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

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

Note: See TracTickets for help on using tickets.