From 0804c4a529de4a5dd35b1ea693f8b97265d14e46 Mon Sep 17 00:00:00 2001 From: Devops Date: Mon, 15 May 2017 16:21:57 +0100 Subject: [PATCH] lib/php/db/table.php --- lib/php/db.php | 2 +- lib/php/db/table.php | 8 ++++---- www/dbq/dbq.php | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/php/db.php b/lib/php/db.php index db6d03b7..48a23109 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -198,7 +198,7 @@ class Db extends nb { if (empty($this->type)) $this->type = strtolower(preg_replace('/^([^:]+):.*$/','\1',$this->pdo)); if (!$this->type) return false; - if ($v = $this->p('db.host')) $this->host = $v; + if ($v = $this->p('db_host')) $this->host = $v; if ($this->conf_type('use_path')) { if (empty($this->host)) $this->host = preg_replace('/^\w+:/','',$this->pdo); diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 44fb2e60..47fc2972 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -1004,11 +1004,11 @@ Class Table extends nb { # $fields = $this->fields(); $fields_filter = []; - #die($this->p('rows.fields')); - #die($this->p('rows.fields')); + #die($this->p('rows_fields')); + #die($this->p('rows_fields')); #bye($this->p()); - if ($this->p('rows.fields')) { - $fields_filter = preg_split('/[^\w_]/',$this->p('rows.fields')); + if ($this->p('rows_fields')) { + $fields_filter = preg_split('/[^\w_]/',$this->p('rows_fields')); foreach ($fields as $k => $field) { if (!in_array($k,$fields_filter) and !isset($this->extras[$k])) unset($fields[$k]); } diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 11e9f6c3..4e1935f5 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -984,6 +984,5 @@ EOF; } } -#bye($_SERVER['QUERY_STRING']); $DBQ = new DbQ(['run'=>true]); ?> -- 2.47.3