backport #1357 to stable45
fixing <?php - thx @simonbuehler
Merge pull request #1499 from owncloud/backport-1357-stable45

backport #1357 to stable45