X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=invoice_view.php;h=2bb987637beeec51f3336399df1bb65d31e0baba;hb=369f22660682718b49355cd7ac5119ad89982d80;hp=a40d9b670b14848ca9912cdc9451a8c6c5ee6d00;hpb=70272dc970919c348288bd09ff835f05e7538949;p=timetracker.git diff --git a/invoice_view.php b/invoice_view.php index a40d9b67..2bb98763 100644 --- a/invoice_view.php +++ b/invoice_view.php @@ -52,7 +52,7 @@ $tax = 0; foreach($invoice_items as $item) $subtotal += $item['cost']; if ($tax_percent) { - $tax_expenses = in_array('et', explode(',', $user->plugins)); + $tax_expenses = $user->isPluginEnabled('et'); foreach($invoice_items as $item) { if ($item['type'] == 2 && !$tax_expenses) continue;