Commit 79a65245 authored by Simon Welsh's avatar Simon Welsh

Fixes order

git-svn-id: svn+ssh://lsgn/var/logbot-www@68 5f99df0c-6b0a-442a-b40a-040688e84a9d
parent de519016
...@@ -107,7 +107,7 @@ function build_stats(Redis $r) { ...@@ -107,7 +107,7 @@ function build_stats(Redis $r) {
$res = DB::inst()->query(sprintf($query, $name)); $res = DB::inst()->query(sprintf($query, $name));
$stats[$name] = []; $stats[$name] = [];
while($row = pg_fetch_array($res)) { while($row = pg_fetch_array($res)) {
$stats[$name][$row[0]] = $row[1]; $stats[$name][$row[1]] = $row[0];
} }
} }
$stats = array_filter($stats); $stats = array_filter($stats);
......
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