|
@@ 416-418 (lines=3) @@
|
| 413 |
|
$this->error[] = lang('There can be more than one discount with said upper threshold as a <<maximum>>!', 'mod_discount'); |
| 414 |
|
} |
| 415 |
|
|
| 416 |
|
if ($postArray['type_value'] != 1 && $postArray['type_value'] != 2) { |
| 417 |
|
$this->error[] = lang('Invalid type value!', 'mod_discount'); |
| 418 |
|
} |
| 419 |
|
|
| 420 |
|
if ($postArray['type_value'] == 1 && $postArray['value'] >= 100) { |
| 421 |
|
$this->error[] = lang('Invalid type value!', 'mod_discount'); |
|
@@ 420-422 (lines=3) @@
|
| 417 |
|
$this->error[] = lang('Invalid type value!', 'mod_discount'); |
| 418 |
|
} |
| 419 |
|
|
| 420 |
|
if ($postArray['type_value'] == 1 && $postArray['value'] >= 100) { |
| 421 |
|
$this->error[] = lang('Invalid type value!', 'mod_discount'); |
| 422 |
|
} |
| 423 |
|
|
| 424 |
|
if (!preg_match('/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/', $postArray['date_begin'])) { |
| 425 |
|
$this->error[] = lang('Invalid date range!', 'mod_discount'); |