]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 22 May 2018 04:16:21 +0000 (05:16 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 22 May 2018 04:16:21 +0000 (05:16 +0100)
www/dbq/dbq.php

index 6fb70fc3588d7ef9853fe2d2f30d1b861452f7d9..2204d55dd5bf02bb757a37fd6295f3459662174d 100644 (file)
@@ -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[] = '<a href="' . $this->base . '/logout"'
-                                       .($this->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().')'
-                                       #.'<img src="/ldap/jpegPhoto.jpg?w=20" />'
                                .'</a>';
                        }