Fix: Avoid error if method not provided
This commit is contained in:
parent
662b0b7d2c
commit
0d1ae6a71d
@ -408,12 +408,13 @@ class FormFile
|
||||
|
||||
print '</tr>';
|
||||
|
||||
// Hook of thirdparty module
|
||||
// Execute hooks
|
||||
// $hooks must be array('key'=>$instanceofclass)
|
||||
if (! empty($hooks) && is_array($hooks))
|
||||
{
|
||||
foreach($hooks as $module)
|
||||
{
|
||||
$module->formBuilddocOptions();
|
||||
if (method_exists($module,'formBuilddocOptions')) $module->formBuilddocOptions();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user