Skip to content

Commit

Permalink
QA: Minor fix to version compare
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Apr 3, 2023
1 parent d5c6653 commit 3b17127
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7042,7 +7042,11 @@ function is_install_needed($version = null) {
log_install_medium('step', "$result = (cacti_version_compare($db, $version, $mode)");
}

return $result;
if ($mode == '==') {
return !$result;
} else {
return $results;
}
}

function is_cacti_develop($version = null) {
Expand Down

0 comments on commit 3b17127

Please sign in to comment.