From: Nicolas Boisselier Date: Thu, 30 Nov 2017 04:38:30 +0000 (+0000) Subject: lib/php/db.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=d650aa993b3465e9ab864871a5b3776f209d3a8c;p=nb.git lib/php/db.php --- diff --git a/lib/php/db.php b/lib/php/db.php index 974ab0d1..a7f75a9e 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -374,7 +374,7 @@ class Db extends nb { * Return a table instance */ public function table($name='',$params=[]) { - if ( !is_array($params) ) bye('[type=>, sql=>, ...]'); + if ( !is_array($params) ) $this->bye('Usage: table($name,[type=>, sql=>, ...])'); if (!$name and !empty($this->default_table)) $name = $this->default_table; if (!$name) $this->bye('table(): Missing table');