Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
During testing uploading file I've got exception message:
Unexpected PHP error [Undefined variable: authmaps] severity [E_NOTICE] in [****\modules\user.module] line [201]
My patch changes:
if ($authmaps) => if (isset($authmaps))
I don't know if this condition is sufficient so please review (but for my testing error message disappeared )
thank you
Comment | File | Size | Author |
---|---|---|---|
#2 | user.module.authmap.path.txt | 447 bytes | Thomas Ilsche |
user.module.authmaps.patch.txt | 461 bytes | kuba.zygmunt |
Comments
Comment #1
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedyes, this will fix the notice and won't have unwanted side effects.
This review brought to you by Patch Bingo!
Comment #2
Thomas Ilsche CreditAttribution: Thomas Ilsche commentedEven though the patch will probably behave correctly I would suggest the following alternative for clear style (always initialize variables).
Comment #3
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #4
(not verified) CreditAttribution: commentedComment #5
(not verified) CreditAttribution: commentedComment #6
(not verified) CreditAttribution: commentedComment #7
(not verified) CreditAttribution: commented