Fix su eliminazione sottocategorie

This commit is contained in:
loviuz 2021-11-25 16:12:02 +01:00
parent 8248129b38
commit 371943c5c6
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ include_once __DIR__.'/../../core.php';
$subcategorie = $dbo->fetchArray('SELECT * FROM `mg_categorie` WHERE `parent`='.prepare($id_record).' ORDER BY nome ASC '); $subcategorie = $dbo->fetchArray('SELECT * FROM `mg_categorie` WHERE `parent`='.prepare($id_record).' ORDER BY nome ASC ');
foreach ($subcategorie as $sub) { foreach ($subcategorie as $sub) {
$n_articoli = $dbo->fetchNum('SELECT * FROM `mg_articoli` WHERE `id_sottocategoria`='.prepare($sub['id'])); $n_articoli = $dbo->fetchNum('SELECT * FROM `mg_articoli` WHERE `id_sottocategoria`='.prepare($sub['id']).' AND deleted_at IS NULL');
echo ' echo '
<tr> <tr>
<td>'.$sub['nome'].'</td> <td>'.$sub['nome'].'</td>