Skip to content

Commit

Permalink
Merge pull request #2709 from Mips2648/alpha
Browse files Browse the repository at this point in the history
fix error "Call to undefined method jeedom::getOsVersion()" on health page
  • Loading branch information
zoic21 authored Jun 24, 2024
2 parents bc3a42c + 6899050 commit ea800cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/jeedom.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public static function health() {
'comment' => '',
'key' => 'uptodate'
);
if (version_compare(self::getOsVersion(), '12', '<')) {
if (version_compare(system::getOsVersion(), '12', '<')) {
$status = shell_exec('systemctl status fail2ban.service');
$failed = stripos($status, 'failed') !== false;
$running = stripos($status, 'running') !== false;
Expand Down

0 comments on commit ea800cd

Please sign in to comment.