[TYPO3-dev] strcmp() expects parameter 1 to be string in view_help.php on line 447
Stefan Geith
typo3dev2008.nospam1 at geithware.de
Thu Sep 24 14:21:03 CEST 2009
Hi Devs,
Can someone confirm this error ?
Could not find this in bugtracker.
Latest trunk (R6045):
Click on "Help" / "Typo3 Manual",
then click one of the entries e.g. "Typo3 core":
Warning: strcmp() expects parameter 1 to be string, array given in
typo3_src-4.3/typo3/view_help.php on line 447
Line 429-447:
429: $parts = array();
430: $parts[0] = ''; // Reserved for header of table
...
447: if (!strcmp($parts,'')) unset($parts[0]);
448: $output.= implode('<br />',$parts);
Maybe line 447 should be replaced with
if (!strcmp($parts[0],'')) unset($parts[0]);
or maybe better
if (!$parts[0]) {
unset($parts[0]);
}
/Stefan
More information about the TYPO3-dev
mailing list