[TYPO3-commerce] RFC: Bug #31344: Empty markerArray causes fatal error

Roman Schürmann rs at marketing-factory.de
Thu Oct 27 15:19:57 CEST 2011


Hey guys,

This is a SVN patch request.

Type: Bug
Bugtracker reference: http://forge.typo3.org/issues/31344
Branch: trunk

Problem:
In tx_commerce_pi1 the markerArray could be empty. This leads to an
error: Catchable Fatal Error: Argument 2 passed to
tslib_cObj::substituteMarkerArray() must be an array, null given, called
in /.../class.tx_commerce_pi1.php on line 786 ...

Solution:
Add a typecast (array) to function call substituteMarkerArray(), see
attached patch

Additional Notes:

Thanks,
Roman
-- 

Marketing Factory Consulting GmbH  *   mailto:rs at marketing-factory.de
Marienstraße 14                    *   Tel.: +49 211-361176-62
D-40212 Duesseldorf, Germany       *   Fax:  +49 211-361176-99
Amtsgericht Duesseldorf HRB 53971  *   http://www.marketing-factory.de/

Geschaeftsfuehrer:    Peter Faisst   |   Katja Faisst
Karoline Steinfatt   |   Christoph Allefeld   |   Markus M. Kimmel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_31344.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-commerce/attachments/20111027/9d96e3a5/attachment.txt>


More information about the TYPO3-team-commerce mailing list