From 1e632ad7189a384ac2665e6b0ec77b7db70e2780 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 28 Dec 2015 17:26:42 +0100 Subject: [PATCH] declare variables --- lib/php/db.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/php/db.php b/lib/php/db.php index e0cb2859..caa80f19 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -39,10 +39,13 @@ class db extends nb { public $type; public $tables = array(); + # Objects + public $table; + # Web public $dbs; // others databases keys - public $table; public $default_table; + public $limits = array('10','20','50','100','500','1000'); public $help_criterias = array( ' * or % for wildcar', ' ! to negate', @@ -320,9 +323,7 @@ EOF; // Limit $r .= ''; - $r .= ''.html_select_array(array( - '10','20','50','100','500','1000' - ),array( + $r .= ''.html_select_array($this->limits,array( 'html' => 'class="limit" name="limit" id="limit"', 'selected' => $this->p('limit'), 'prettyText' => true, -- 2.47.3