19 lines
495 B
PHP
19 lines
495 B
PHP
<?php
|
|
|
|
class OrderController extends OrderControllerCore
|
|
{
|
|
public function postProcess()
|
|
{
|
|
if (
|
|
Tools::isSubmit('submitCreate')
|
|
&& Module::isInstalled('eicaptcha')
|
|
&& Module::isEnabled('eicaptcha')
|
|
&& false === Module::getInstanceByName('eicaptcha')->hookActionContactFormSubmitCaptcha([])
|
|
&& !empty($this->errors)
|
|
) {
|
|
unset($_POST['submitCreate']);
|
|
}
|
|
parent::postProcess();
|
|
}
|
|
}
|