Merge pull request #19122 from owncloud/discardexpirationdatefornonlinkshares

Discard expiration date from result for non-link shares
This commit is contained in:
Thomas Müller 2015-09-21 11:47:37 +02:00
commit 6006a03ef1
1 changed files with 5 additions and 0 deletions

View File

@ -2441,6 +2441,11 @@ class Share extends Constants {
if (isset($row['stime'])) {
$row['stime'] = (int) $row['stime'];
}
if (isset($row['expiration']) && $row['share_type'] !== self::SHARE_TYPE_LINK) {
// discard expiration date for non-link shares, which might have been
// set by ancient bugs
$row['expiration'] = null;
}
}
/**