// Remove $this->table and $this->identifier from objectModels + normalize

This commit is contained in:
rMalie
2011-12-09 14:05:24 +00:00
parent 08276cac3b
commit 0af197daf3
20 changed files with 124 additions and 115 deletions
+5 -3
View File
@@ -147,14 +147,16 @@ class CurrencyCore extends ObjectModel
public function deleteSelection($selection)
{
if (!is_array($selection) OR !Validate::isTableOrIdentifier($this->identifier) OR !Validate::isTableOrIdentifier($this->table))
if (!is_array($selection))
die(Tools::displayError());
foreach ($selection AS $id)
foreach ($selection as $id)
{
$obj = new Currency((int)($id));
$res[$id] = $obj->delete();
}
foreach ($res AS $value)
foreach ($res as $value)
if (!$value)
return false;
return true;