diff --git a/lib/helpers.php b/lib/helpers.php index 520c464e2..401890470 100755 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -46,7 +46,8 @@ function database() */ function prepare($parameter) { - return database()->prepare($parameter); + if (!empty($parameter)) + return database()->prepare($parameter); } /** diff --git a/modules/aggiornamenti/database.php b/modules/aggiornamenti/database.php index b4e4ac1f6..be070eb15 100644 --- a/modules/aggiornamenti/database.php +++ b/modules/aggiornamenti/database.php @@ -107,7 +107,7 @@ if (!empty($results)) { if (array_key_exists('current', $errors) && $errors['current'] == null) { echo ' -
'.tr('Tabella assente').'
'; +