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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

killes@www.drop.org’s picture

Status: Needs review » Reviewed & tested by the community

yes, this will fix the notice and won't have unwanted side effects.

This review brought to you by Patch Bingo!

Thomas Ilsche’s picture

FileSize
447 bytes

Even though the patch will probably behave correctly I would suggest the following alternative for clear style (always initialize variables).

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)