|
@@ 397-402 (lines=6) @@
|
| 394 |
|
// Empty/not send and required? |
| 395 |
|
// TODO: Add require --> file (uses $_FILE) |
| 396 |
|
|
| 397 |
|
if (isset($data['required']) and ($readValue === null or $readValue == '')) { |
| 398 |
|
$this->log('is required', $data); |
| 399 |
|
return false; |
| 400 |
|
} elseif ($readValue == '') { |
| 401 |
|
return true; |
| 402 |
|
} |
| 403 |
|
|
| 404 |
|
// Checking type input |
| 405 |
|
switch ($data['type']) { |
|
@@ 520-525 (lines=6) @@
|
| 517 |
|
$readValue = $this->getData($data['name']); |
| 518 |
|
|
| 519 |
|
// Is required? |
| 520 |
|
if (isset($data['required']) and ($readValue === null or $readValue == '')) { |
| 521 |
|
$this->log('is required', $data); |
| 522 |
|
return false; |
| 523 |
|
} elseif ($readValue == '') { |
| 524 |
|
return true; |
| 525 |
|
} |
| 526 |
|
|
| 527 |
|
|
| 528 |
|
// Seleccionamos que tipo de analisis (dependiendo si se ha creado como input o como radio) |
|
@@ 552-557 (lines=6) @@
|
| 549 |
|
$readValue = $this->getData($data['name']); |
| 550 |
|
|
| 551 |
|
// Is required? |
| 552 |
|
if (isset($data['required']) and ($readValue === null or $readValue == '')) { |
| 553 |
|
$this->log('is required', $data); |
| 554 |
|
return false; |
| 555 |
|
} elseif ($readValue == '') { |
| 556 |
|
return true; |
| 557 |
|
} |
| 558 |
|
|
| 559 |
|
// Seleccionamos que tipo de analisis (dependiendo si se ha creado como input o como radio) |
| 560 |
|
// Esto no deberia estar aqui porque no es necesario, pero esta hecho por posibles despistes de usuarios finales |