Fixed array syntax to work with PHP 5.3

It seems that array brackets are only supported starting with PHP 5.4.
Fixed the array brackets to be compatible and not cause a syntax error
in PHP 5.3.

Please review @schiesbn @karlitschek