I recently upgraded this module to solve an issue and another has cropped up, when a customer is added from the admin we get this error

Warning invalid argument supplied for foreach() in (... path to.addcustomers.php on line 71.

Line 71 gegins this..

Can anyone spot an error here I could fix

foreach ($errors as $line_no=>$error) {
if (is_array($error)) {

echo "<div>
Errors on line " . ($line_no+1) . " of the imported file
</div>";
echo '<ul>';
foreach ($error as $err) {
echo '<li style="color: red;">' . $err . '</li>';
}
echo '</ul>';
} else {
echo '<li style="color: red;">' . $error . '</li>';
}
}


Thanks

Steve