Skip to content

Commit

Permalink
fix(condition): empty sql IN statement
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Apr 13, 2022
1 parent c9f0f79 commit 8e4d049
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions inc/condition.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,11 @@ public function getConditionHtml(array $input) : string {
foreach ($sections as $section) {
$sectionsList[] = $section->getID();
}
$questionListExclusion[] = [
PluginFormcreatorSection::getForeignKeyField() => $sectionsList,
];
if (count($sectionsList) > 0) {
$questionListExclusion[] = [
PluginFormcreatorSection::getForeignKeyField() => $sectionsList,
];
}
$html.= '<div class="div_show_condition_field">';
$html .= PluginFormcreatorQuestion::dropdownForForm(
$form->getID(),
Expand Down

0 comments on commit 8e4d049

Please sign in to comment.