Discard expiration date from result for non-link shares

This commit is contained in:
Vincent Petry 2015-09-17 13:34:15 +02:00
parent c9397dffea
commit 1911472b88
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;
}
}
/**