[TYPO3-core] strcmp expects parameter 2 to be string

Martin Kutschker masi-no at spam-typo3.org
Mon Sep 21 11:29:37 CEST 2009


Stefan Frömken schrieb:
> In extension manager->language settings I get following error when I
> choose a language and click on save:
> 
> Warning: strcmp() expects parameter 2 to be string, array given in
> C:\xampp_webserver\htdocs\t3lib\class.t3lib_befunc.php on line 2909
> 
> I found this row:
> 
> if (is_array($CHANGED_SETTINGS) && isset($CHANGED_SETTINGS[$key]) &&
> strcmp($settings[$key], $CHANGED_SETTINGS[$key])) {
> 
> and changed it with
> 
> if (is_array($CHANGED_SETTINGS) && isset($CHANGED_SETTINGS[$key]) &&
> strcmp($settings[$key], (string)$CHANGED_SETTINGS[$key])) {
> 
> now it works.
> 
> TYPO3 current trunk 4.3-dev on PHP 5.3.0 on XAMPP 1.7.2

Hey Steffen,

Now that you have gone so far not only to find a bug, but also fix it,
it would be great if you could take the last step and follow the
lists-rule. Hint: have a look at the thread subjects and the structure
of thread starters.

Masi


More information about the TYPO3-team-core mailing list