diff --git a/importexport/inc/class.importexport_schedule_ui.inc.php b/importexport/inc/class.importexport_schedule_ui.inc.php index 18c8531b6b..426a3091da 100644 --- a/importexport/inc/class.importexport_schedule_ui.inc.php +++ b/importexport/inc/class.importexport_schedule_ui.inc.php @@ -309,7 +309,7 @@ fwrite(STDERR,'importexport_schedule: ' . date('c') . ": Definition not found! \n"); } - if($po->get_errors()) { + if(method_exists($po, 'get_errors') && $po->get_errors()) { $data['errors'] = $po->get_errors(); fwrite(STDERR, 'importexport_schedule: ' . date('c') . ": Import errors:\n#\tError\n"); foreach($po->get_errors() as $record => $error) {