When no render engines is enabled following error will be displayed:
Notice: Undefined index: in graphapi_demo_engine() (line 48 of /home/drupalpro/websites/virtual7.local/sites/all/modules/graphapi/modules/graphapi_demo/graphapi_demo.module).
No big deal since there is a message at the bottom of the page stating "No Graph API render engines enabled. Check your modules page for a Graph API render engine".
Proposeal: Fix the Notice, change the text to a warning so it can't be overlooked, add a link to the modules page.
Patch follows.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | graphapi-no_engine_notice-1865616-1.patch | 2.45 KB | s.daniel |
Comments
Comment #1
s.daniel commentedPatch attached.
Comment #2
s.daniel commentedtitle fix
Comment #3
clemens.tolboomThe root cause is
injecting a NULL value which should not happen :(
What do you think?
Comment #4
clemens.tolboomI fixed the notice according to #3 and the message to the module page from #1
Thanks @s.Daniel
Comment #5
s.daniel commentedNice - I checked your commit and its definitely better. Good way to learn some proper coding. :)