I get a notice with:
Notice: Undefined variable: days w template_preprocess_timefield_formatter() (linia 887 z /home/vidicon/ftp/brodnica/sites/all/modules/timefield/timefield.module).
what is wrong??
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | undefined_variable-2813751-4.patch | 503 bytes | awm |
| #3 | undefined_variable-2813751-3.patch | 508 bytes | somatick |
| #2 | undefined_variable-2813751-2.patch | 501 bytes | nilesh.addweb |
Comments
Comment #2
nilesh.addweb commentedPFA Patch.
Comment #3
somatick commentedIt seems the notice only occurs if there is a weekly repeating time field with no days selected.
I think it would be better if $days is initialised as an array and if it is initialised in the scope that it is used. Please try this patch
Comment #4
awm commentedthe patch above did not apply cleanly on 7.x-1.x attaching a clean patch
Comment #6
awm commented