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.
Merge pull request #5121 from owncloud/shareapi-syntaxerror

Fixed array syntax to work with PHP 5.3