Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
sucs-site
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sucssite
sucs-site
Commits
4e2f8fb7
Commit
4e2f8fb7
authored
Apr 25, 2019
by
Tom Lake
🔧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
components/printer.php
components/printer.php
+1
-1
No files found.
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