Fix: Avoid error if method not provided

This commit is contained in:
Laurent Destailleur 2011-06-08 16:43:44 +00:00
parent 662b0b7d2c
commit 0d1ae6a71d

View File

@ -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();
}
}
}