[TYPO3-core] RFC #17412: PHP Warning in class.t3lib_matchcondition_abstract.php
Sven Jürgens
t3 at blue-side.de
Sun Jan 30 23:02:02 CET 2011
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();
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17412.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110130/04360a2d/attachment.txt>
More information about the TYPO3-team-core
mailing list