Skip to content

Commit

Permalink
fix(tagfield): fatal error if the plugin Tag is not available
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed Oct 26, 2018
1 parent 22a63e9 commit 94905b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inc/fields/tagfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ public function displayField($canEdit = true) {
$fieldName = 'formcreator_field_' . $id;
$domId = $fieldName . $rand;
if ($canEdit) {
if (!class_exists(PluginTagTag::class)) {
// Plugin Tag not available
echo '';
return;
}
$required = $this->fields['required'] ? ' required' : '';

$values = [];
Expand Down

0 comments on commit 94905b5

Please sign in to comment.