Skip to content

Commit

Permalink
Fix to properly check if uptime is defined #1664
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jul 30, 2023
1 parent 45fc901 commit 8af040e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions authentic-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -946,8 +946,8 @@ sub get_sysinfo_vars
$uptime_text =~ s/es/e/;
}
}
$uptime = '<a href=\'' . $theme_webprefix . '/init/\'>' . $uptime_text . '</a>';

$uptime = !$uptime_text ? undef :
(foreign_available("init") ? '<a href=\'' . $theme_webprefix . '/init/\'>' . $uptime_text . '</a>' : $uptime_text);
}

# Running processes
Expand Down

0 comments on commit 8af040e

Please sign in to comment.