Fix compatibility for php5.3

[] syntax is 5.4+ only. Remplacing with array() makes the code compatible with php 5.3.