Commit dbef96600aa3d124b324fdd1f140aaf09cf6af06
1 parent
7e14ab24
Exists in
master
and in
2 other branches
correcoes
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
Controller/PrinterController.php
... | ... | @@ -82,7 +82,8 @@ class PrinterController extends Controller |
82 | 82 | |
83 | 83 | if(isset($counter[$size])) |
84 | 84 | { |
85 | - $pCounter[$key]['prints'] = $counter[$size]['prints'] - $counter[0]['prints']; | |
85 | + $pCounter[$key]['prints'] = ($size == 0) ? | |
86 | + $counter[$size]['prints'] : $counter[$size]['prints'] - $counter[0]['prints']; | |
86 | 87 | $pCounter[$key]['blackInk'] = $counter[$size]['blackInk']; |
87 | 88 | $pCounter[$key]['coloredInk'] = $counter[$size]['coloredInk']; |
88 | 89 | } | ... | ... |
Resources/views/Printer/index.html.twig