From cc64c7a6652634a4e45d265dc4e0e8f328149843 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 7 Feb 2017 15:09:06 +0000 Subject: [PATCH] www/dbq/dbq.php --- www/dbq/dbq.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 1de12223..8f5f6d9e 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -251,11 +251,11 @@ class DbQ extends nb { } public function table_rw() { - return 1 + return (1 and ($this->perm >= self::VIEW) and !empty($this->table) and ( strpos('table view',$this->table->type()) !== false ) - ; + ); } public function table_rows($fct=null) { $this->db->limit = $this->limit(); -- 2.47.3