[SUCS Devel] [Git][sucssite/sucs-site][sucs-site] 3 commits: Correctly extract old user page count from DB

Tom Lake tswsl1989 at sucs.org
Thu Apr 25 22:42:01 BST 2019


Tom Lake pushed to branch sucs-site 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
- - - - -
bb7e6d0a by Tom Lake at 2019-04-25T21:41:58Z
Merge branch 'beta' into 'sucs-site'

Merge from beta: Correctly extract old user page count from DB

See merge request sucssite/sucs-site!106
- - - - -


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/c274976e15ea4bbde96c8153817b2b0268de4974...bb7e6d0acb9581af00d8af7f16952204b0d0cedf

-- 
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/compare/c274976e15ea4bbde96c8153817b2b0268de4974...bb7e6d0acb9581af00d8af7f16952204b0d0cedf
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/97255f0e/attachment-0001.html>


More information about the Devel mailing list