From: Nicolas Boisselier Date: Fri, 11 Nov 2016 14:32:27 +0000 (+0000) Subject: Fix bug on action_help X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=e396875ffa7d2158a459a72a7497ea399b3a28fe;p=nb.git Fix bug on action_help --- diff --git a/lib/php/db.php b/lib/php/db.php index 6e122fdf..e9e1d6bb 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -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 = [];