Added default if no audit settings are in place

This commit is contained in:
snipe 2017-08-26 15:27:50 -07:00
parent e10cdd57a5
commit 479f422e68

View file

@ -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 {};