return null instead void
This commit is contained in:
parent
7fe885fefc
commit
bd4d06887c
@ -83,12 +83,12 @@ function getMultidirOutput($object, $module = '')
|
|||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
if (!is_object($object)) {
|
if (!is_object($object)) {
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
if (empty($module) && !empty($object->element)) {
|
if (empty($module) && !empty($object->element)) {
|
||||||
$module = $object->element;
|
$module = $object->element;
|
||||||
} else {
|
} else {
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
return $conf->$module->multidir_output[$object->entity];
|
return $conf->$module->multidir_output[$object->entity];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user