From 52fdb9207e1e423d94238b23eb34e01eeb29ef37 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 9 Feb 2017 09:09:34 +0000 Subject: [PATCH] www/dbq/dbq.php --- www/dbq/dbq.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 9efa7df1..7ca9f467 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -460,12 +460,6 @@ class DbQ extends nb { public function status() { #$this->perm--; $rows = []; - // Client headers - foreach ($this->client_header() as $k=>$v) $rows[] = [ - 'name' => 'client.header.'.$k, - 'value' => ( is_scalar($v) ? $v : json_encode($v) ), - ]; - // Server foreach ([ 'addr', @@ -481,6 +475,12 @@ class DbQ extends nb { $rows[] = [ 'name' => 'server.'.$k, 'value' => $v ]; } + // Client headers + foreach ($this->client_header() as $k=>$v) $rows[] = [ + 'name' => 'client.header.'.$k, + 'value' => ( is_scalar($v) ? $v : json_encode($v) ), + ]; + // Admin or bye ! if ($this->perm < self::ADMIN) return $rows; -- 2.47.3