Fix ownCloud for php5.3.x
Merge pull request #6686 from owncloud/fixes-6685-master

Fix ownCloud for php5.3.x