Update classes/Manufacturer.php

Fixed issue with not being able to remove manufacturers if they where missing an address. (Possible after an upgrade)
This commit is contained in:
Daniel
2013-02-06 11:35:15 +08:00
parent 9a231ac737
commit 09f5879851
+1 -1
View File
@@ -110,7 +110,7 @@ class ManufacturerCore extends ObjectModel
{
$address = new Address($this->id_address);
if (!$address->delete())
if (Validate::isLoadedObject($address) AND !$address->delete())
return false;
if (parent::delete())