If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / add customers from admin

add customers from admin

Locked

Started by stevebrett on 15 May 2009, 1:24 AM · Views: 1,667

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
15 May 2009, 1:24 AM
#1
stevebrett avatar

stevebrett

New Zenner

Join Date:
Oct 2007
Posts:
26
Plugin Contributions:
0

add customers from admin

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