Issue Bug Closed

#16642TCEmain: Wrong syntax on checking NEW items

Oliver Hader 10/13/06, 13:05 updated 03/13/07, 15:32

Description

There are some lines like in class.t3lib_tcemain.php
if (strstr($pid_value,‘NEW’))

The syntax for substr is
string substr ( string string, int start [, int length] )

The code shown above will always return the first argument of the substr-call.
I guess a “preg_match” should have been standing there.

olly

(issue imported from #M4384)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.