summaryrefslogtreecommitdiffstats
path: root/lib/private/Template
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-26 12:36:25 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-26 12:36:25 +0100
commit6bbea33133867c0fc7dc0ab1df74a38c30843141 (patch)
tree035b6310da06ca747733c36b5c09d0c97b886e22 /lib/private/Template
parent26682b6936dcc127393655754500a1848d28c7d0 (diff)
downloadnextcloud-server-6bbea33133867c0fc7dc0ab1df74a38c30843141.tar.gz
nextcloud-server-6bbea33133867c0fc7dc0ab1df74a38c30843141.zip
Simplify ternary operator statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Template')
-rw-r--r--lib/private/Template/JSConfigHelper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php
index 65068973e40..ab52704d1e2 100644
--- a/lib/private/Template/JSConfigHelper.php
+++ b/lib/private/Template/JSConfigHelper.php
@@ -122,7 +122,7 @@ class JSConfigHelper {
$enableLinkPasswordByDefault = $this->config->getAppValue('core', 'shareapi_enable_link_password_by_default', 'no');
- $enableLinkPasswordByDefault = ($enableLinkPasswordByDefault === 'yes') ? true : false;
+ $enableLinkPasswordByDefault = $enableLinkPasswordByDefault === 'yes';
$defaultExpireDateEnabled = $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no') === 'yes';
$defaultExpireDate = $enforceDefaultExpireDate = null;
if ($defaultExpireDateEnabled) {