From: Devops Date: Sun, 14 May 2017 01:23:29 +0000 (+0100) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=6cb220a967483f8862c1aa1a841b249c7c2847e9;p=nb.git www/dbq/dbq.php --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 2e400ec0..8d8f1904 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -161,9 +161,9 @@ class DbQ extends nb { $this->page->nav = $nav; $this->page->body_class = '' - .' db-'.$this->params['db'] - .' table-'.$this->params['table'] - .' action-'.$this->params['action'] + .(empty($this->params['db']) ? '' : ' db-'.$this->params['db']) + .(empty($this->params['table']) ? '' : ' table-'.$this->params['table']) + .(empty($this->params['action']) ? ' action-'.self::PARAM_DB_DEFAULT : ' action-'.$this->params['action']) ; $this->page->begin(); }