Fixed redeclare with an anonymous function.  #1331

Hope we're requiring php 5.3...
Merge branch 'SCHOLAR-3.x' of github.com:openscholar/openscholar into SCHOLAR-3.x