Skip to content

Commit

Permalink
// small change
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Oct 23, 2014
1 parent c971d25 commit acb3b8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/Address.php
Expand Up @@ -174,7 +174,7 @@ public function add($autodate = true, $null_values = false)
Customer::resetAddressCache($this->id_customer);
return true;
}

public function update($null_values = false)
{
// Empty related caches
Expand Down Expand Up @@ -359,7 +359,7 @@ public static function initialize($id_address = null, $with_geoloc = false)
$address = new Address((int)$id_address);

if (!Validate::isLoadedObject($address))
throw new PrestaShopException('Invalid address');
throw new PrestaShopException('Invalid address #'.(int)$id_address);
}
elseif ($with_geoloc && isset($context->customer->geoloc_id_country))
{
Expand Down Expand Up @@ -398,7 +398,7 @@ public static function getAddressIdBySupplierId($id_supplier)
$query->where('id_warehouse = 0');
return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query);
}

public static function aliasExist($alias, $id_address, $id_customer)
{
$query = new DbQuery();
Expand Down

0 comments on commit acb3b8e

Please sign in to comment.