This patch fixes the Notice message displayed when generating content via the Devel module.
It simply checks to make sure the value is set, returns null if it doesn't.
Notice: Undefined index: extension in filefield_paths_tokens() (line 56 of /Volumes/Stuff/htdocs/php/undefeated.my/sites/all/modules/filefield_paths/modules/token.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | filefield_paths-token-1601104.patch | 501 bytes | andypost |
| #1 | filefield_patchs-undefined-index-extension-1601104.patch | 637 bytes | tseven |
Comments
Comment #1
tseven commentedComment #2
sinasalek commentedJust tried the patch and it fixed the issue
Comment #3
sw3b commented+1 on the patch also ! good work
Comment #4
andypostuse
patch -p5 < filefield_patchs-undefined-index-extension-1601104.patchto fixComment #5
andypostRe-roll with right format
Comment #6
decipheredJust to confirm, are you uploading a file that has no extension? There's nothing wrong with the patch itself, but I want to confirm it's even necessary before committing it.
Comment #7
ColdSun commentedIf someone uses the media module with the media_youtube submodule, there would be no extension.
Comment #8
decipheredFix committed, thanks for the work.