Project

General

Profile

Actions

Bug #24897

closed

PHP Warning in class.t3lib_matchcondition_abstract.php

Added by Sven Juergens almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2011-01-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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

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

Solution:
set $browserInfo['all_systems'] = array();

how to reproduce:

set in TypoScript a condition 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.
(issue imported from #M17412)


Files

17412.diff (669 Bytes) 17412.diff Administrator Admin, 2011-01-30 22:56
Actions

Also available in: Atom PDF