Skip to content

Commit

Permalink
fix: fix cdr gui alert toggles (openemr#7179)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Jan 25, 2024
1 parent 38fa538 commit 8ad71bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions interface/super/rules/library/RuleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,9 @@ function updateSummary($ruleId, $types, $title, $developer, $funding, $release,
{
$rule = $this->getRule($ruleId);

// if $types is empty, then set to empty array so the in_array() calls below will work
$types = $types ?: [];

if (is_null($rule)) {
// add
$result = sqlQuery("select count(*)+1 AS id from clinical_rules");
Expand Down

0 comments on commit 8ad71bf

Please sign in to comment.