]> git.nbdom.net Git - nb.git/commitdiff
Fix bug on action_help
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 11 Nov 2016 14:32:27 +0000 (14:32 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 11 Nov 2016 14:32:27 +0000 (14:32 +0000)
lib/php/db.php

index 6e122fdf0cf4069866cf695d5ef7e20437170b1c..e9e1d6bb4156d2aab4e711a3f6a5ce9525507a43 100644 (file)
@@ -84,7 +84,7 @@ class Db extends nb {
     'delete' => 'table.delete',
   ];
 
-  const action_help = [
+  protected static $action_help = [
     ['(db.)?help','This help'],
     ['(db.)?ls','List databases from conf'],
     ['(db.)?tables','List tables (name=* type=* count=1 engine=*)'],
@@ -541,7 +541,7 @@ class Db extends nb {
 
   public function action($action,$table=null) {
     #debug(($this->tables));
-    $available = self::action_help;
+    $available = self::$action_help;
     $actions = explode(',',$action);
     $this->pdef('format',($this->php_cli() ? 'csv' : ''));
     $rows = [];