Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sucssite
sucs-site
Commits
4e2f8fb7
Commit
4e2f8fb7
authored
Apr 25, 2019
by
Thomas Lake
🔧
Browse files
Correctly extract old user page count from DB
parent
83f21ec5
Pipeline
#570
passed with stage
in 3 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
components/printer.php
View file @
4e2f8fb7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment