]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorDevops <sys@15gifts.com>
Sun, 14 May 2017 01:23:29 +0000 (02:23 +0100)
committerDevops <sys@15gifts.com>
Sun, 14 May 2017 01:23:29 +0000 (02:23 +0100)
www/dbq/dbq.php

index 2e400ec07c229bae5f47d75119c70d206ba6579b..8d8f1904451154e0371d71adb6814f6ef857b2f0 100644 (file)
@@ -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();
     }