Use proper array key

Fixes https://github.com/owncloud/core/issues/12047
Merge pull request #12050 from owncloud/use-proper-array-name

Use proper array key