summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2019-05-10 12:24:39 +0000
committerAleksander Machniak <machniak@kolabsys.com>2019-05-10 12:24:39 +0000
commit1ad22e15c18108892a333a025b5553c53e85bef0 (patch)
tree8ef0e2081d5465802faddb301f2252aff4b80e18 /lib
parent648e537423e9de552d0bac9bbe9d03d7c85b7c59 (diff)
downloadwebadmin-1ad22e15c18108892a333a025b5553c53e85bef0.tar.gz
Skip form initialization if there's no id attribute
Diffstat (limited to 'lib')
-rw-r--r--lib/kolab_form.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/kolab_form.php b/lib/kolab_form.php
index ec0afde..9b5b010 100644
--- a/lib/kolab_form.php
+++ b/lib/kolab_form.php
@@ -204,7 +204,9 @@ class kolab_form
}
// Add event trigger, so UI can rebuild the form e.g. adding tabs
- $content .= kolab_html::script('kadm.form_init(\'' . $this->attribs['id'] . '\')');
+ if ($this->attribs['id']) {
+ $content .= kolab_html::script('kadm.form_init(\'' . $this->attribs['id'] . '\')');
+ }
return $content;
}