// norm + perf

This commit is contained in:
fBrignoli committed 2011-09-21 14:48:33 +00:00
1 parent afdb4bcfb4
commit 9401d5ee82
1 file changed
+2 -1
+2 -1
View File
@@ -137,7 +137,8 @@ class TaxCore extends ObjectModel
public function isUsed() public function isUsed()
{ {
return Db::getInstance()->getValue(' return Db::getInstance()->getValue('
SELECT COUNT(*) FROM `'._DB_PREFIX_.'order_detail_tax` SELECT `id_tax`
FROM `'._DB_PREFIX_.'order_detail_tax`
WHERE `id_tax` = '.(int)$this->id WHERE `id_tax` = '.(int)$this->id
); );
} }