5107 added a check to see if there are any requests before the foreach
Merge branch 'master' of github.com:atutor/ATutor