From: Nicolas Boisselier Date: Tue, 22 May 2018 04:16:21 +0000 (+0100) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=98b5cb33092a2fd1cab8e459c73e9d1c3c5c3d5f;p=nb.git www/dbq/dbq.php --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 6fb70fc3..2204d55d 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -333,8 +333,6 @@ class DbQ extends nb { } -#if (empty($rows)) bye($rows); -# NB 18.12.17 if (!empty($rows)) $this->db->out($rows,$head,$conf); if (empty($this->_nopage)) { @@ -343,11 +341,13 @@ class DbQ extends nb { if ($this->http->user()) { $bottom[] = 'http->user() ? ' style="background:url(\'' . $this->base . '/ldap/me.jpg?w=20\') right no-repeat;padding-right:22px"' : '') + .(!empty($this->db->conf['ldap']) and $this->http->user() + ? ' style="background:url(\'' . $this->base . '/ldap/me.jpg?w=20\') right no-repeat;padding-right:22px"' + : '' + ) .'>Logout: ' .$this->http->user() .' (can: '.$this->perm2h().')' - #.'' .''; }