Fix add serial

This commit is contained in:
MatteoPistorello 2024-01-23 15:17:06 +01:00
parent e18c2e2da6
commit f527f7cfe9
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ echo '
<input type="hidden" name="dir" value="'.$dir.'">'; <input type="hidden" name="dir" value="'.$dir.'">';
$info = $dbo->fetchArray('SELECT * FROM mg_prodotti WHERE serial IS NOT NULL AND '.$riga.'='.prepare($idriga)); $info = $dbo->fetchArray('SELECT * FROM mg_prodotti WHERE serial IS NOT NULL AND '.$riga.'='.prepare($idriga));
$serials = array_column($info, 'serial'); $serials = $info ? array_column($info, 'serial') : [];
if ($dir == 'entrata') { if ($dir == 'entrata') {
echo ' echo '