fix php 5.3 syntax

fixes https://github.com/owncloud/mail/issues/324

@LEDfan please test - THX