]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix error log spam
authorRobin McCorkell <rmccorkell@karoshi.org.uk>
Mon, 31 Mar 2014 14:16:33 +0000 (15:16 +0100)
committerRobin McCorkell <rmccorkell@karoshi.org.uk>
Thu, 3 Apr 2014 12:43:02 +0000 (13:43 +0100)
Regression from e002b7242cb19a0e028d325cd64b57e67dc48108

apps/files_external/templates/settings.php

index e8815acaf16c8f7f68b5ea89b2d00301a751008f..0d04e35e7fef4a38d9c2bdf4a6ca64c9c1da86ee 100644 (file)
                <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
                                                </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')); ?>"