Skip to content

Commit 5bb4390

Browse files
committed
fix: migrazione immagini marche
1 parent a209e83 commit 5bb4390

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

update/2_9_7.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$id_module = Module::where('name', 'Marche')->first()->id;
88

99
if (!empty($id_module)) {
10-
$marche = $database->fetchArray('SELECT `id`, `immagine` FROM `zz_marche` WHERE `immagine` IS NOT NULL');
10+
$marche = $database->fetchArray('SELECT `id`, `immagine` FROM `zz_marche` WHERE `immagine` IS NOT NULL AND `immagine` != ""');
1111

1212
foreach ($marche as $marca) {
1313
$file_exists = $database->selectOne('zz_files', ['id'], [

0 commit comments

Comments
 (0)