Oops: Make sure that the default add-on for SLA computation is enabled by default

SVN:trunk[1387]
This commit is contained in:
Denis Flaven
2011-07-29 10:27:37 +00:00
parent 72326435ce
commit 0a5e37c592

View File

@@ -44,7 +44,7 @@ class SLAComputation
throw new CoreException("Could not select this module, '$sModuleName' in not a valid class name");
return;
}
if (!is_subclass_of($sClassName, 'SLAComputationAddOnAPI'))
if (($sClassName != 'SLAComputationAddOnAPI') && !is_subclass_of($sClassName, 'SLAComputationAddOnAPI'))
{
throw new CoreException("Could not select this module, the class '$sClassName' is not derived from SLAComputationAddOnAPI (parent class:".get_parent_class($sClassName)." )");
return;