From 0f859cbda75e0526b9665915bc4c7809b07ab642 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Fri, 12 Dec 2025 10:02:07 -0500 Subject: [PATCH] Fix displaypc.asp: Replace IIf() with If-Then-Else, remove badges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - VBScript doesn't have IIf() function - replaced with proper syntax - Removed badge styling per user preference, use plain text - Added FROM DUAL to scalar subquery for compatibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- displaypc.asp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/displaypc.asp b/displaypc.asp index 0cd615e..1a8005c 100644 --- a/displaypc.asp +++ b/displaypc.asp @@ -749,7 +749,8 @@ End If "(SELECT COUNT(*) FROM ednclogs WHERE machineid = ? AND action = 'cleaned') AS total_cleaned, " & _ "(SELECT COUNT(*) FROM ednclogs WHERE machineid = ? AND action IN ('failed', 'error')) AS total_failed, " & _ "(SELECT COUNT(*) FROM ednclogs WHERE machineid = ? AND created > DATE_SUB(NOW(), INTERVAL 24 HOUR)) AS events_24h, " & _ - "(SELECT MAX(created) FROM ednclogs WHERE machineid = ? AND action = 'cleaned') AS last_cleaned" + "(SELECT MAX(created) FROM ednclogs WHERE machineid = ? AND action = 'cleaned') AS last_cleaned " & _ + "FROM DUAL" Set rsEdnc = ExecuteParameterizedQuery(objConn, edncSQL, Array(machineid, machineid, machineid, machineid, machineid, machineid, machineid)) If Not rsEdnc.EOF And Not IsNull(rsEdnc("first_seen")) Then hasEdnc = True @@ -772,11 +773,11 @@ End If Files Cleaned - <%= rsEdnc("total_cleaned") %> + <%= rsEdnc("total_cleaned") %> Files Failed - 0, "danger", "secondary") %>"><%= rsEdnc("total_failed") %> + <%= rsEdnc("total_failed") %> Events (24h) @@ -848,7 +849,6 @@ End If End If rsEdnc.Close Set rsEdnc = Nothing - End If %>