content archive model - postgresql

Install 3.4alpha with the testing sample data on postgresql
click on Archived Articles 
set for example year filter = 2011
you got a
Warning: Invalid argument supplied for foreach() ..

cause of hardcoded function month & year instead of proper method