fix some array notation for BC with php 5.3