diff --git a/install/updates/froxlor/update_2.1.inc.php b/install/updates/froxlor/update_2.1.inc.php index 76975b9155..2f0a297119 100644 --- a/install/updates/froxlor/update_2.1.inc.php +++ b/install/updates/froxlor/update_2.1.inc.php @@ -67,15 +67,18 @@ } Update::showUpdateStep("Adjusting cronjobs"); - Database::query(" + $cfupd_stmt = Database::prepare(" UPDATE `" . TABLE_PANEL_CRONRUNS . "` SET `module`= 'froxlor/export', `cronfile` = 'export', - `cronclass` = '\\Froxlor\\Cron\\System\\ExportCron', + `cronclass` = :cc, `interval` = '1 HOUR', `desc_lng_key` = 'cron_export' WHERE `module` = 'froxlor/backup' "); + Database::pexecute($cfupd_stmt, [ + 'cc' => '\\Froxlor\\Cron\\System\\ExportCron' + ]); Update::lastStepStatus(0); Update::showUpdateStep("Adjusting system for data-export function"); diff --git a/lib/Froxlor/Validate/Form/Data.php b/lib/Froxlor/Validate/Form/Data.php index 6fdabed877..8558657211 100644 --- a/lib/Froxlor/Validate/Form/Data.php +++ b/lib/Froxlor/Validate/Form/Data.php @@ -265,4 +265,10 @@ public static function validateFormFieldTextarea($fieldname, $fielddata, $newfie return $returnvalue; } + + public static function validateFormFieldImage($fieldname, $fielddata, $newfieldvalue) + { + // validation is handled in \Froxlor\Settings\Store::storeSettingImage() + return true; + } }