Skip to content

Commit 893efda

Browse files
committed
fix(form): PHP warning when displaying form's historical
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 4f14232 commit 893efda

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

inc/form.class.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,13 @@ public static function getSpecificValueToDisplay($field, $values, array $options
358358
$class = "plugin-forcreator-active";
359359
$title = __('Active');
360360
}
361-
$output = '<i class="fa fa-circle '
362-
. "$faIcon $class"
363-
. '" aria-hidden="true" title="' . $title . '"></i>';
364361
if (isset($options['raw_data']['id'])) {
362+
$output = '<i class="fa fa-circle '
363+
. $class
364+
. '" aria-hidden="true" title="' . $title . '"></i>';
365365
$output = '<div style="text-align: center" onclick="plugin_formcreator.toggleForm(' . $options['raw_data']['id']. ')">' . $output . '</div>';
366+
} else {
367+
$output = $title;
366368
}
367369
return $output;
368370
break;

0 commit comments

Comments
 (0)