- Issue created by @interdruper
- Assigned to Mohd Sahzad
- Issue was unassigned.
- Status changed to Needs review
5 months ago 7:58am 7 February 2024
These couple of PHP warnings may be triggered in certain cases, when a form without $form['#id] is rendered , i.e. 'block_form'
Using the module Context → , place any block in any context.
In comments_order_form_alter(), check that $form['#id] exists before using it.
Warning: Undefined array key "#id" in comments_order_form_alter() (line 154 of comments_order.module).
Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in comments_order_form_alter() (line 154 of comments_order.module).
Needs review
3.0
Code