Bugfix moduli custom

This commit is contained in:
Thomas Zilio 2019-02-01 17:46:46 +01:00
parent dd6fa69fbb
commit 60a356809e
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ include_once App::filepath('include|custom|', 'top.php');
$query = Util\Query::getQuery($structure, [ $query = Util\Query::getQuery($structure, [
'id' => $id_record, 'id' => $id_record,
]); ]);
$has_access = $dbo->fetchNum($query); $has_access = !empty($query) ? $dbo->fetchNum($query) : true;
if ($has_access) { if ($has_access) {
// Inclusione gli elementi fondamentali // Inclusione gli elementi fondamentali