From 2fcf607864469d4c3ff9c954413ee31b8e95dc5d Mon Sep 17 00:00:00 2001 From: Luca <30728163+lucasalva87@users.noreply.github.com> Date: Wed, 23 Sep 2020 23:52:36 +0200 Subject: [PATCH] Rimuovo risultati con id a null --- ajax_dataload.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ajax_dataload.php b/ajax_dataload.php index 3d8a45e04..4c65ad5c3 100755 --- a/ajax_dataload.php +++ b/ajax_dataload.php @@ -91,6 +91,13 @@ if (!empty($query)) { } } + //Rimuovo risultati con id a null + foreach ( $rows as $i => $r ) { + if ( empty($r['id'] ) ) { + unset($rows[$i]); + } + } + // Creazione della tabella foreach ($rows as $i => $r) { $result = [