--- uc_addresses.module.original 2009-08-12 19:07:00.000000000 +0300 +++ uc_addresses.module 2009-08-12 19:07:03.000000000 +0300 @@ -1509,7 +1509,7 @@ function _uc_addresses_db_get_address($u // If $aid is present, return just the one address - if ($aid) { + if (!is_null($aid)) { $result = db_query("SELECT * FROM {uc_addresses} WHERE aid = %d ", $aid); // Check to make sure there is data