| @@ 700-707 (lines=8) @@ | ||
| 697 | if ($variables) { |
|
| 698 | foreach ($variables as &$variable) { |
|
| 699 | // Move on if the new data wasn't even sent |
|
| 700 | if (! isset($data[$variable->env_variable])) { |
|
| 701 | $variableList[] = [ |
|
| 702 | 'id' => $variable->id, |
|
| 703 | 'env' => $variable->env_variable, |
|
| 704 | 'val' => $variable->a_currentValue, |
|
| 705 | ]; |
|
| 706 | continue; |
|
| 707 | } |
|
| 708 | ||
| 709 | // Update Empty but skip validation |
|
| 710 | if (empty($data[$variable->env_variable])) { |
|
| @@ 710-717 (lines=8) @@ | ||
| 707 | } |
|
| 708 | ||
| 709 | // Update Empty but skip validation |
|
| 710 | if (empty($data[$variable->env_variable])) { |
|
| 711 | $variableList[] = [ |
|
| 712 | 'id' => $variable->id, |
|
| 713 | 'env' => $variable->env_variable, |
|
| 714 | 'val' => null, |
|
| 715 | ]; |
|
| 716 | continue; |
|
| 717 | } |
|
| 718 | ||
| 719 | // Is the variable required? |
|
| 720 | // @TODO: is this even logical to perform this check? |
|