]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 30 Nov 2017 04:38:30 +0000 (04:38 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 30 Nov 2017 04:38:30 +0000 (04:38 +0000)
lib/php/db.php

index 974ab0d13937925df8c7c665d105acf2740e9004..a7f75a9e9db06ffd5ea7255e75351336b8f98890 100644 (file)
@@ -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');