[TYPO3-core] RFC #9266: Bug: strcmp() with array as parameter in t3lib_div::linkThisScript() produces warnings with PHP 5.3

Ingo Renner ingo at typo3.org
Mon Sep 1 23:32:11 CEST 2008


Niels Pardon wrote:

> Solution:
> The strcmp() just checks whether the GET parameter has an empty string
> value. Let's do it with a simple !== '' and the warnings are gone.

!empty($var) is even more explicit and easier to understand


Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2


More information about the TYPO3-team-core mailing list