]> git.nbdom.net Git - nb.git/commitdiff
dbq
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 16 Dec 2016 16:34:24 +0000 (16:34 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 16 Dec 2016 16:34:24 +0000 (16:34 +0000)
www/dbq/dbq.php

index 7405ce610268aea8a1b10948c3eb8ce991c4b563..50e09e250310e810fea82553c2a07f604972ef35 100644 (file)
@@ -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);