$form['#node']->nid is not valid on the node/add form, and is throwing this error:

Notice: Undefined property: stdClass::$nid in flag_friend_access_form_alter() (line 53 of /path/to/drupal/sites/all/modules/flag_friend/flag_friend_access/flag_friend_access.module).

Attached patch fixes it.

Comments

tr33m4n’s picture

Can confirm this patch fixed this issue

Cheers

sirkitree’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.