Are there consequences to changing this part of the frontend.php in terms of security or stability?
No there is not.
The change was made to correct the value check, to ensure the correct variable type of mm.menuid
mm.menuid is an integer variable, using quotes can slow the query very very slightly as the use of quotes changes the value to a string value rather than an integer value.
However, it seems some components are not correctly returning any Itemid value, thuis resulting in the check being
mm.menuid = OR mm.menuid = 0
which causes an error in the query
The query can however handle a case where the query is
mm.menuid = '' OR mm.menuid = 0
Please Log in or Create an account to join the conversation.
uddem.php
change:
$sql="SELECT id FROM #__menu WHERE link LIKE '%com_uddeim%' AND published>=0 LIMIT 1";
To:
$sql="SELECT id FROM #__menu WHERE link LIKE '%index%' AND published>=0 LIMIT 1";
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.