// norm + perf
This commit is contained in:
1 parent
afdb4bcfb4
commit
9401d5ee82
1 file changed
+2
-1
+2
-1
@@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user