#16642TCEmain: Wrong syntax on checking NEW items
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.