[TYPO3-core] RFC #17412: PHP Warning in class.t3lib_matchcondition_abstract.php

Sven Juergens t3 at blue-side.de
Tue Feb 22 18:36:04 CET 2011


Am 06.02.11 20:49, schrieb Sven Jürgens:
> Am 31.01.2011 10:13, schrieb Sebastian Fischer:
>> On 30.01.2011 23:02, Sven Jürgens wrote:
>>> Hi,
>>>
>>> this is a SVN patch request.
>>>
>>> Type: Bugfix, No Brainer
>>>
>>> Bugtracker references:
>>> http://bugs.typo3.org/view.php?id=17412
>>>
>>> Branches: 4_5, trunk
>>>
>>> Problem:
>>> i got the following PHP Warning
>>> PHP Warning: implode() [<a
>>> href='function.implode'>function.implode</a>]: Invalid arguments passed
>>> in
>>> /.../typo3_src-4.5.0/t3lib/matchcondition/class.t3lib_matchcondition_abstract.php
>>>
>>>
>>> line 262
>>>
>>> Additional Information:
>>> this is the following line
>>> $allSystems .= ' ' . implode(' ', $browserInfo['all_systems']);
>>> problem is the definition of $browserInfo['all_systems'] in
>>> class.t3lib_utility_client.php as empty string
>>>
>>> for information in $browserInfo['all_systems'] there is used the sended
>>> userAgent from your Browser, but if some clients don't send the
>>> userAgent $browserInfo['all_systems'] is still an string
>>>
>>> how to reproduce:
>>>
>>> set in TypoScript a "system" condition like
>>>
>>> [system = mac]
>>> // do something
>>> [global]
>>>
>>> after that call the page width that condtition and use Firefox Addon
>>> Tamper Data, to delete your userAgent.
>>>
>>>
>>> Solution:
>>> set $browserInfo['all_systems'] = array();
>>
>> +1 on reading
>>
>> Greetings
>> Sebastian
>
> Reminder#1

Reminder#2


More information about the TYPO3-team-core mailing list