At least the user_stats and the backup_migrate modules give an action array as parameter without the index 'configurable' set. Replacing the boolean comparision with empty fixes the php errors caused by this.
| Comment | File | Size | Author |
|---|---|---|---|
| actions-fix-undefined-index-configurable.patch | 612 bytes | eMPee584 |
Comments
Comment #1
Anonymous (not verified) commentedThis should be patched in HEAD first but you need to keep the !$array['configurable'] so it should read
Comment #2
dave reidAccording to the API docs (http://api.drupal.org/api/function/hook_action_info/7), 'configurable': (required). We should not be doing this check for incorrect implementations. Or correct the api docs that the parameter is not required.
Comment #3
eMPee584 commentedregarding the first comment, if i get it correctly,
empty($foo)equals!isset($foo) || !$fooso that's redundant..anyways thx dave for looking it up you're definitly right i will redirect appropiate one-liners to the violating modules... right after some sleep ^^
Comment #4
Anonymous (not verified) commentedYou're correct. Forgive the noise.
Comment #5
dave reidI'll mark this as 'by design' then.