[TYPO3-core] RFC: #2300: [TS] Condition hostname doesn't work

Benjamin Mack benni at typo3.org
Mon Sep 15 17:55:36 CEST 2008


Hey,

Steffen Kamper wrote:
> Oliver Klee schrieb:
>> Hi Steffen,
>>
>> +                foreach ($hosts as $host) {
>> +                    if (t3lib_div::getIndpEnv('HTTP_HOST') == $host)  {
>> +                        return true;
>> +                    }
>>
>> Why not use in_array?
+1, but why not use t3lib_div::inList(), so we don't need to do the 
whole array stuff ?

-- 
All the best,
benni.
-SDG-


More information about the TYPO3-team-core mailing list