Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
Correctly extract old user page count from DB
· 4e2f8fb7
Thomas Lake
authored
Apr 25, 2019
4e2f8fb7
Merge branch 'master' into 'beta'
· d6fee656
Thomas Lake
authored
Apr 25, 2019
Correctly extract old user page count from DB See merge request
!105
d6fee656
Hide whitespace changes
Inline
Side-by-side
components/printer.php
View file @
d6fee656
...
...
@@ -98,7 +98,7 @@ $res->Close();
//get the number of pages printed by "old" users and add it to the total
$res
=
$sucsDB
->
Execute
(
"select sum(pages) as pages from printer where username = 'old' group by username order by sum(pages) desc"
);
$old
=
$res
->
FetchRow
();
$old
=
$old
[
0
];
$old
=
$old
[
'pages'
];
$res
->
Close
();
$total
+=
$old
;
//Output two lines at the bottem of the table, one for "old" users and the other for the total
...
...