From bd4d373a861b078562887dd59e156ab58dc3a4a9 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 16 Dec 2016 16:34:24 +0000 Subject: [PATCH] dbq --- www/dbq/dbq.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 7405ce61..50e09e25 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -228,7 +228,7 @@ table.rows th, table.rows td { border-color: '.$this->colors['body-border'].'; } #if (!$keys) return; #$this->not_implemented('Table has no fields'); #bye(array_combine($keys,$values)); - $this->table->html_edit(array_combine($keys,$values),$this->table->base.($add ? 'insert/' : 'update/'),$add); + $this->table->html_edit(array_combine($keys,$values),$this->table->base.($add ? 'insert/' : 'update/').$this->params['args'],$add); } public function table_rows($fct=null) { @@ -526,7 +526,7 @@ table.rows th, table.rows td { border-color: '.$this->colors['body-border'].'; } header('Location: '.$this->table->base); } elseif ($action == 'rm' and $this->perm >= self::DELETE) { - if (!$this->table->delete($_POST)) 1;#$this->error('rm'); + if (!$this->table->delete($_POST)) $this->error('rm'); header('Location: '.$this->table->base); -- 2.47.3