[ticket/416] Use extra variable in get_module()
B3P-416
This commit is contained in:
1 parent
3a2782b578
commit
0d429b2f29
1 file changed
+8
-2
@@ -108,12 +108,18 @@ class manager
|
||||
*/
|
||||
protected function get_module($class_name)
|
||||
{
|
||||
$this->module = $this->portal_helper->get_module($class_name);
|
||||
$module = $this->portal_helper->get_module($class_name);
|
||||
|
||||
if (!$this->module instanceof module_interface)
|
||||
if (!$module instanceof module_interface)
|
||||
{
|
||||
trigger_error('CLASS_NOT_FOUND', E_USER_ERROR);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->module = $module;
|
||||
}
|
||||
|
||||
unset($module);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user