Replaced [] with array() so the code is compatible with php 5.3

Re-issuing my previous pull request from a branch this time.