From 60a356809efc01713ec5a7e14d4858921368748b Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Fri, 1 Feb 2019 17:46:46 +0100 Subject: [PATCH] Bugfix moduli custom --- editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor.php b/editor.php index 03994e103..6596187f9 100755 --- a/editor.php +++ b/editor.php @@ -15,7 +15,7 @@ include_once App::filepath('include|custom|', 'top.php'); $query = Util\Query::getQuery($structure, [ 'id' => $id_record, ]); -$has_access = $dbo->fetchNum($query); +$has_access = !empty($query) ? $dbo->fetchNum($query) : true; if ($has_access) { // Inclusione gli elementi fondamentali