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: | 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)
Note:
See TracTickets
for help on using tickets.

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