#20491Wrong substitution of ###THIS_UID### in t3lib_loaddbgroup.php
Description
In the readMM method of class.t3lib_loaddbgroup.php there is a Variable $additionalWhere.
As the name already says, it is filled with different stuff to build an additional WHERE clause for a MySQL query.
In almost any case there is an AND added to the value of the variable before the additional stuff for the WHERE clause.
The only exception is in line 301, which is adding stuff to the value without putting an AND before it.
If this is the only part to be added to it, the whole WHERE clause will throw a MySQL error in line 309 due to a missing AND between uid_local=blah and $additionalWhere.
IMHO there should be a check for an existing AND in $additionalWhere before it is added to the WHERE clause of exec_SELECTquery in line 309 and if there is none, it should be added to $additionalWhere.
The bug is present in 4.2.6 as well.
it throws an error in some special situations:
i.e. when opening a translated content element using a powermail plugin if this content element can be tagged with the tagpack as well.
I checked the backtrace to be sure it’s not a problem of the tagpack or powermail itself and finally came to line 301 in class.t3lib_loaddbgroup.php
(issue imported from #M11168)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.