fix expire function
Merge pull request #2079 from owncloud/fix_expire_function

fix expire function