Fix printerlookup.asp: Add Dim objConn,rs for Option Explicit
Option Explicit requires all variables to be declared. objConn and rs are created in sql.asp but need to be pre-declared in the calling page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
<%
|
||||
Option Explicit
|
||||
Response.Buffer = True
|
||||
Dim objConn, rs
|
||||
%>
|
||||
<!--#include file="includes/sql.asp"-->
|
||||
<%
|
||||
' Lookup printer by IP address or FQDN and redirect to displayprinter.asp
|
||||
' Used by Zabbix to link directly to printer details
|
||||
Dim ip, fqdn, lookupValue, cmd, rs
|
||||
Dim ip, fqdn, lookupValue, cmd
|
||||
|
||||
ip = Trim(Request.QueryString("ip") & "")
|
||||
fqdn = Trim(Request.QueryString("fqdn") & "")
|
||||
|
||||
Reference in New Issue
Block a user