| @@ 668-675 (lines=8) @@ | ||
| 665 | if ($server->option->variables) { |
|
| 666 | foreach ($server->option->variables as &$variable) { |
|
| 667 | // Move on if the new data wasn't even sent |
|
| 668 | if (! isset($data[$variable->env_variable])) { |
|
| 669 | $variableList[] = [ |
|
| 670 | 'id' => $variable->id, |
|
| 671 | 'env' => $variable->env_variable, |
|
| 672 | 'val' => $variable->server_value, |
|
| 673 | ]; |
|
| 674 | continue; |
|
| 675 | } |
|
| 676 | ||
| 677 | // Update Empty but skip validation |
|
| 678 | if (empty($data[$variable->env_variable])) { |
|
| @@ 678-685 (lines=8) @@ | ||
| 675 | } |
|
| 676 | ||
| 677 | // Update Empty but skip validation |
|
| 678 | if (empty($data[$variable->env_variable])) { |
|
| 679 | $variableList[] = [ |
|
| 680 | 'id' => $variable->id, |
|
| 681 | 'env' => $variable->env_variable, |
|
| 682 | 'val' => null, |
|
| 683 | ]; |
|
| 684 | continue; |
|
| 685 | } |
|
| 686 | ||
| 687 | // Is the variable required? |
|
| 688 | // @TODO: is this even logical to perform this check? |
|