From e396875ffa7d2158a459a72a7497ea399b3a28fe Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 11 Nov 2016 14:32:27 +0000 Subject: [PATCH] Fix bug on action_help --- lib/php/db.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = []; -- 2.47.3