fix "Use of undefined constant DEMO_EOL" notice
Merge pull request #2 from cj123/master

fix "Use of undefined constant DEMO_EOL" notice