Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2019-01-05 02:01:57 +0300
committernachoparker <nacho@ownyourbits.com>2019-01-05 04:14:53 +0300
commit388fa77b374ffe673c20896178a7fc5b864ea8c1 (patch)
treeae9f87b24d608498f85f64c3a9fde5840e962c2c /ncp-web
parentc842e00399cb298667fe177dbab825e17b4b21a0 (diff)
small fixes
Diffstat (limited to 'ncp-web')
-rw-r--r--ncp-web/elements.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/ncp-web/elements.php b/ncp-web/elements.php
index b1098c30..0541db93 100644
--- a/ncp-web/elements.php
+++ b/ncp-web/elements.php
@@ -14,7 +14,8 @@ function print_config_form( $ncp_app, $cfg, $l )
{
$ret = <<<HTML
<div id="config-box">
- <table>
+ <form>
+ <table>
HTML;
foreach ($cfg['params'] as $param)
@@ -34,7 +35,7 @@ HTML;
$default = $param['default'];
$class = '';
- if ($param['type'] == 'directory' || $param['type'] == 'file')
+ if (array_key_exists('type', $param) && ($param['type'] == 'directory' || $param['type'] == 'file'))
$class = 'path';
$ret .= "<td>
@@ -50,7 +51,7 @@ HTML;
if (array_key_exists('default', $param))
$ret .= "&nbsp;<img class=\"default-btn\" title=\"restore defaults\" src=\"../img/defaults.svg\">";
- if ($param['type'] == 'directory')
+ if (array_key_exists('type', $param) && $param['type'] == 'directory')
{
if (file_exists($param['value']))
$ret .= "&nbsp;<span class=\"ok-field\">directory exists</span>";