[SUCS Devel] [Git][sucssite/sucs-site][beta] 2 commits: Correctly extract old user page count from DB
Tom Lake
tswsl1989 at sucs.org
Thu Apr 25 22:28:36 BST 2019
Tom Lake pushed to branch beta at sucssite / sucs-site
Commits:
4e2f8fb7 by Thomas Lake at 2019-04-25T18:52:48Z
Correctly extract old user page count from DB
- - - - -
d6fee656 by Tom Lake at 2019-04-25T21:28:30Z
Merge branch 'master' into 'beta'
Correctly extract old user page count from DB
See merge request sucssite/sucs-site!105
- - - - -
1 changed file:
- components/printer.php
Changes:
=====================================
components/printer.php
=====================================
@@ -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
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/compare/adbc05b8a7d7d83d88d7b09d1fa713f49546a92b...d6fee656b731da24e41b2880c3d9b0c785220cd2
--
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/compare/adbc05b8a7d7d83d88d7b09d1fa713f49546a92b...d6fee656b731da24e41b2880c3d9b0c785220cd2
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20190425/1de19f02/attachment.html>
More information about the Devel
mailing list