diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2019-05-10 12:24:39 +0000 |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2019-05-10 12:24:39 +0000 |
commit | 1ad22e15c18108892a333a025b5553c53e85bef0 (patch) | |
tree | 8ef0e2081d5465802faddb301f2252aff4b80e18 | |
parent | 648e537423e9de552d0bac9bbe9d03d7c85b7c59 (diff) | |
download | webadmin-1ad22e15c18108892a333a025b5553c53e85bef0.tar.gz |
Skip form initialization if there's no id attribute
-rw-r--r-- | lib/kolab_form.php | 4 |
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; } |