This commit is contained in:
Alexandre Simonet 2016-02-25 14:15:51 +01:00
parent 13d92a6732
commit f4f1b00946

View File

@ -173,7 +173,7 @@ class Contactform extends Module {
}
$emails = array_unique($emails);
DB::getInstance()->executeS('DELETE FROM `'._DB_PREFIX_.'contactform_email` WHERE `type` = '.pSQL($_POST['type']));
Db::getInstance()->executeS('DELETE FROM `'._DB_PREFIX_.'contactform_email` WHERE `type` = '.pSQL($_POST['type']));
foreach ($emails as $k => $email) {
Db::getInstance()->autoExecute(_DB_PREFIX_.'contactform_email', [