Closed (fixed)
Project:
Ubercart Addresses
Version:
6.x-2.0-alpha1
Component:
Address book
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Dec 2011 at 08:50 UTC
Updated:
6 Jan 2012 at 09:00 UTC
When an user visit their address book when they have no addresses, a foreach-warning is displayed. That's because in template_preprocess_uc_addresses_address_book(), the code tries to loop through $vars['other_addresses'] which does not exists when an user has no addresses.
Solution: initialize this variable at the beginning of the function.
A fix for this will come shortly.
Comments
Comment #1
megachrizThe fix has been committed to the 6.x-2.x branch.