1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Correzioni minori

This commit is contained in:
Dasc3er
2020-09-24 09:25:44 +02:00
parent ad28280d5c
commit 6c6b73b4c2
3 changed files with 7 additions and 9 deletions

View File

@ -91,15 +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) {
// Evitare risultati con id a null
if (empty($r['id'])) {
continue;
}
$result = [
'id' => $r['id'],
'<span class="hide" data-id="'.$r['id'].'"></span>', // Colonna ID