Commit d6fee656 authored by Tom Lake's avatar Tom Lake 🔧

Merge branch 'master' into 'beta'

Correctly extract old user page count from DB

See merge request !105
parents adbc05b8 4e2f8fb7
Pipeline #571 passed with stages
in 3 minutes and 5 seconds
......@@ -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'];
$total += $old;
//Output two lines at the bottem of the table, one for "old" users and the other for the total
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment