Author |
Topic |
|
Bladesnitz
Snitz Hosting Admin
USA
8 Posts |
Posted - 06 August 2005 : 15:17:36
|
In the 'admin_config_email.asp',
in the 'IsObjInstalled' function,
the "Err = 0" lines should be replaced with "Err.clear"
This is the only place in the code I found that Err = 0 is used.
On Chili!ASP, this results in some strange behavior (and thus returns no objects). By making the above changed, the Err object is kept intact and the function operates properly.
--- admin_config_email.asp.orig 2004-09-29 06:00:00.000000000 -0400 +++ admin_config_email.asp 2005-08-06 16:00:59.000000000-0400 @@ -263,7 +263,7 @@ on error resume next '## initialize default values IsObjInstalled = false - Err = 0 + Err.clear '## testing code dim xTestObj set xTestObj = Server.CreateObject(strClassString) @@ -272,7 +272,7 @@ end if '## cleanup set xTestObj = nothing - Err = 0 + Err.clear on error goto 0 end function %> < |
Edited by - Davio on 26 September 2006 05:42:33 |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 07 August 2005 : 01:40:09
|
It could be removed too. Since Err is reset to 0 after the "on error resume next" statement is called.
Thanks for the heads up.< |
Support Snitz Forums
|
|
|
Bladesnitz
Snitz Hosting Admin
USA
8 Posts |
Posted - 07 August 2005 : 02:38:59
|
I'm definitly no ASP guru, but I'm glad to contribute when I can :) BTW.. other than that, works great on SunOneASP as far as I've seen so far...< |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 06 August 2006 : 00:25:32
|
Fixed in 3.4.06.
The following changes were made to the IsObjInstalled function in admin_config_email.asp: Changed Err = 0 to Err.Clear. Changed if 0 = Err then to if Err.Number = 0 then.< |
Support Snitz Forums
|
|
|
|
Topic |
|