Use a lookup to determine if the state should be changed by the cron script
Merge pull request #411 from joomla/alt408

Use a lookup to determine if the state should be changed by the cron script