summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2014-03-31 15:16:33 +0100
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2014-04-03 13:43:02 +0100
commiteaad6a4e27c291ce8f226bf77bc26b3001b4c380 (patch)
tree01a54dc4a825e290aa02a1d5fce39eec27e01e6c /apps
parent54783550e8736e0507be05fdc8711d8b30218d72 (diff)
downloadnextcloud-server-eaad6a4e27c291ce8f226bf77bc26b3001b4c380.tar.gz
nextcloud-server-eaad6a4e27c291ce8f226bf77bc26b3001b4c380.zip
Fix error log spam
Regression from e002b7242cb19a0e028d325cd64b57e67dc48108
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/templates/settings.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php
index e8815acaf16..0d04e35e7fe 100644
--- a/apps/files_external/templates/settings.php
+++ b/apps/files_external/templates/settings.php
@@ -16,16 +16,16 @@
<tbody width="100%">
<?php $_['mounts'] = array_merge($_['mounts'], array('' => array())); ?>
<?php foreach ($_['mounts'] as $mount): ?>
- <tr <?php print_unescaped(($mount['mountpoint'] !== '') ? 'class="'.OC_Util::sanitizeHTML($mount['class']).'"' : 'id="addMountPoint"'); ?>>
+ <tr <?php print_unescaped(isset($mount['mountpoint']) ? 'class="'.OC_Util::sanitizeHTML($mount['class']).'"' : 'id="addMountPoint"'); ?>>
<td class="status">
<?php if (isset($mount['status'])): ?>
<span class="<?php p(($mount['status']) ? 'success' : 'error'); ?>"></span>
<?php endif; ?>
</td>
<td class="mountPoint"><input type="text" name="mountPoint"
- value="<?php p($mount['mountpoint']); ?>"
+ value="<?php p(isset($mount['mountpoint']) ? $mount['mountpoint'] : ''); ?>"
placeholder="<?php p($l->t('Folder name')); ?>" /></td>
- <?php if ($mount['mountpoint'] == ''): ?>
+ <?php if (!isset($mount['mountpoint'])): ?>
<td class="backend">
<select id="selectBackend" data-configurations='<?php print_unescaped(json_encode($_['backends'])); ?>'>
<option value="" disabled selected
@@ -113,7 +113,7 @@
</select>
</td>
<?php endif; ?>
- <td <?php if ($mount['mountpoint'] != ''): ?>class="remove"
+ <td <?php if (isset($mount['mountpoint'])): ?>class="remove"
<?php else: ?>style="visibility:hidden;"
<?php endif ?>><img alt="<?php p($l->t('Delete')); ?>"
title="<?php p($l->t('Delete')); ?>"