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

Tom Lake tswsl1989 at sucs.org
Thu Apr 25 19:55:00 BST 2019


Tom Lake pushed to branch master at sucssite / sucs-site


Commits:
4e2f8fb7 by Thomas Lake at 2019-04-25T18:52:48Z
Correctly extract old user page count from DB

- - - - -


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/commit/4e2f8fb716904ac4bdb71b8c829914fbb7b3ecb1

-- 
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/4e2f8fb716904ac4bdb71b8c829914fbb7b3ecb1
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/02327e34/attachment.html>


More information about the Devel mailing list