From 479f422e6852db0343f5c4ce991575b2393b27bf Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 26 Aug 2017 15:27:50 -0700 Subject: [PATCH] Added default if no audit settings are in place --- resources/views/partials/bootstrap-table.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 8499198016..ba511cf2a7 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -100,7 +100,7 @@ $('.snipe-table').bootstrapTable({ function dateRowCheckStyle(value) { - if ((value.days_to_next_audit) && (value.days_to_next_audit < {{ $snipeSettings->audit_warning_days }})) { + if ((value.days_to_next_audit) && (value.days_to_next_audit < {{ $snipeSettings->audit_warning_days ?: 0 }})) { return { classes : "danger" } } return {};