From 6cb220a967483f8862c1aa1a841b249c7c2847e9 Mon Sep 17 00:00:00 2001 From: Devops Date: Sun, 14 May 2017 02:23:29 +0100 Subject: [PATCH] www/dbq/dbq.php --- www/dbq/dbq.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } -- 2.47.3