fix method exist test
This commit is contained in:
parent
63987fa32e
commit
49bad95d31
@ -853,7 +853,7 @@ if (empty($reshook))
|
||||
foreach($facture_source->lines as $line)
|
||||
{
|
||||
// Extrafields
|
||||
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && method_exists($lines[$i], 'fetch_optionals')) {
|
||||
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && method_exists($line, 'fetch_optionals')) {
|
||||
// load extrafields
|
||||
$line->fetch_optionals();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user