[ticket/416] Use extra variable in get_module()
B3P-416
This commit is contained in:
@@ -108,12 +108,18 @@ class manager
|
|||||||
*/
|
*/
|
||||||
protected function get_module($class_name)
|
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);
|
trigger_error('CLASS_NOT_FOUND', E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->module = $module;
|
||||||
|
}
|
||||||
|
|
||||||
|
unset($module);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user