summaryrefslogtreecommitdiffstats
path: root/lib/private/share
diff options
context:
space:
mode:
authorMiguel Prokop <miguel.prokop@vtu.com>2014-11-21 13:31:56 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2014-11-26 13:04:20 +0100
commitb96b601017a822079dfdc656663514674a8c5e38 (patch)
treec685209532750e323468c9fb9dfe322d931b99c3 /lib/private/share
parentcdf37a061bb95e0695adc7b787be799570a4123c (diff)
downloadnextcloud-server-b96b601017a822079dfdc656663514674a8c5e38.tar.gz
nextcloud-server-b96b601017a822079dfdc656663514674a8c5e38.zip
Consolidate if statement, and update unit test
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/helper.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/private/share/helper.php b/lib/private/share/helper.php
index 1ebcdb563a5..6bbb101db3a 100644
--- a/lib/private/share/helper.php
+++ b/lib/private/share/helper.php
@@ -204,10 +204,8 @@ class Helper extends \OC\Share\Constants {
} else {
$expires = $userExpireDate;
}
- } else {
- if ($defaultExpires && !empty($defaultExpireSettings['enforceExpireDate'])) {
- $expires = $defaultExpires;
- }
+ } else if ($defaultExpires && !empty($defaultExpireSettings['enforceExpireDate'])) {
+ $expires = $defaultExpires;
}
return $expires;