Problem/Motivation
These couple of PHP warnings may be triggered in certain cases, when a form without $form['#id] is rendered , i.e. 'block_form'
Steps to reproduce
Using the module Context, place any block in any context.
Proposed resolution
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).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3419676-comment_order-undefined_array_key_id-3.patch | 547 bytes | interdruper |
Issue fork comments_order-3419676
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mohd sahzad commentedComment #3
interdruper commentedPatch is attached.
Comment #4
interdruper commentedComment #7
lobodakyrylo commented