From fcc3325f3bbeff204d7e5d779fcd8875d6dd4e10 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 8 Jan 2009 22:01:57 +0000 Subject: * Adds the variables passed to the hashtable BaseHttpServer passes in. * Null check on Sessions_report. --- OpenSim/Region/UserStatistics/WebStatsModule.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/UserStatistics/WebStatsModule.cs') diff --git a/OpenSim/Region/UserStatistics/WebStatsModule.cs b/OpenSim/Region/UserStatistics/WebStatsModule.cs index efea515..cb3b292 100644 --- a/OpenSim/Region/UserStatistics/WebStatsModule.cs +++ b/OpenSim/Region/UserStatistics/WebStatsModule.cs @@ -203,8 +203,16 @@ namespace OpenSim.Region.UserStatistics IStatsController rep = reports[regpath]; Hashtable repParams = new Hashtable(); - repParams["RequestVars"] = request["requestvars"]; - repParams["QueryStringKeys"] = request["querystringkeys"]; + if (request.ContainsKey("requestvars")) + repParams["RequestVars"] = request["requestvars"]; + else + repParams["RequestVars"] = new Hashtable(); + + if (request.ContainsKey("querystringkeys")) + repParams["QueryStringKeys"] = request["querystringkeys"]; + else + repParams["QueryStringKeys"] = new string[0]; + repParams["DatabaseConnection"] = dbConn; repParams["Scenes"] = m_scene; -- cgit v1.1