Skip to content

Commit

Permalink
bug fix - alert symbol showing too early
Browse files Browse the repository at this point in the history
  • Loading branch information
ImpressionEngineering committed Mar 30, 2018
1 parent f43567e commit aff55e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion perch/addons/apps/impeng_certdash/admin.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
if ($CurrentUser->logged_in()) {
$this->register_app('impeng_certdash', 'SSL/TLS Certificate Status', 1, 'Dashboard Widget to show status of SSL/TLS certificate', '0.5', true);
$this->register_app('impeng_certdash', 'SSL/TLS Certificate Status', 1, 'Dashboard Widget to show status of SSL/TLS certificate', '0.6', true);
$this->require_version('impeng_certdash', '3.0');
$opts = array();
foreach (range(0, 30) as $number) {
Expand Down
4 changes: 2 additions & 2 deletions perch/addons/apps/impeng_certdash/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
echo "<li>";
switch(true) {

case ($daysLeft < $daysAlert) :
case ($daysLeft <= $daysAlert) :
echo PerchUI::icon('core/circle-delete', 16, null, 'icon-status-alert');
break;

case ($daysLeft > $daysAlert && $daysLeft < $daysWarn) :
case ($daysLeft >= $daysAlert && $daysLeft <= $daysWarn) :
echo PerchUI::icon('core/alert', 16, null, 'icon-status-warning');
break;

Expand Down

0 comments on commit aff55e0

Please sign in to comment.