fix delete all in MMR
fix a whole ton of stuff with MMR & PHP5.4