]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/table.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 30 Dec 2017 04:17:53 +0000 (04:17 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 30 Dec 2017 04:17:53 +0000 (04:17 +0000)
lib/php/db/table.php

index 02afb3c8037b162bb0bcbe42c497f939d184a2f2..3702fb1afc792d28171f915005952f8abbb8cacb 100644 (file)
@@ -2035,14 +2035,6 @@ Class Table extends nb {
 
       $r .= '<div class="options">';
 
-      // Hiddens
-      if ($this->show_hidden_params)
-      $r .= ''#.print_r(self::$params,true)
-        .self::form_hidden(['db','table','format','limit','download'])
-        // Embed for no html format (rent)
-        .'<input type="'.($this->p('debug') ? 'text' : 'hidden').'" name="download" value="0"/>';
-      ;
-
       // Tables - see default.js if you change class
       $tables = array_keys($this->db()->tables());
       if (count($tables)>1) {
@@ -2106,6 +2098,14 @@ Class Table extends nb {
       $r .= '</span>';
       */
 
+      // Hiddens
+      $form_hidden = ['db','table','format','limit','download'];
+      if ($this->show_hidden_params) $r .= ''#.print_r(self::$params,true)
+        .self::form_hidden($form_hidden)
+        // Embed for no html format (rent)
+        .'<input type="'.($this->p('debug') ? 'text' : 'hidden').'" name="download" value="0"/>';
+      ;
+
       $r .= '</div>'; # < Options
 
     }