fix: rimozione widget nei moduli

This commit is contained in:
MatteoPistorello 2024-10-25 16:43:32 +02:00 committed by valentina
parent b2a591bc30
commit eb9e0d9c19
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class WidgetManager implements ManagerInterface
$database = database();
// Widget richiesto
$widget = $database->fetchArray('SELECT * FROM `zz_widgets` LEFT JOIN `zz_widgets_lang` ON (`zz_widgets`.`id` = `zz_widgets_lang`.`id_record` AND `zz_widgets_lang`.`id_lang` = '.prepare(\Models\Locale::getDefault()->id).') WHERE `zz_widgets`.`id` = '.prepare($options['id']))[0];
$widget = $database->fetchArray('SELECT `zz_widgets`.*, `zz_widgets_lang`.`text` FROM `zz_widgets` LEFT JOIN `zz_widgets_lang` ON (`zz_widgets`.`id` = `zz_widgets_lang`.`id_record` AND `zz_widgets_lang`.`id_lang` = '.prepare(\Models\Locale::getDefault()->id).') WHERE `zz_widgets`.`id` = '.prepare($options['id']))[0];
$result = ' ';