Fixes an error related to using continue within a loop.
https://wiki.php.net/rfc/continue_on_switch_deprecation
This commit is contained in:
parent
16ec547064
commit
768f5ee529
@ -61,7 +61,7 @@ class Form
|
|||||||
{
|
{
|
||||||
$this->missing[] = $field_id;
|
$this->missing[] = $field_id;
|
||||||
$this->data[$field_id] = '';
|
$this->data[$field_id] = '';
|
||||||
continue;
|
continue 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$this->data[$field_id] = $post[$field_id];
|
$this->data[$field_id] = $post[$field_id];
|
||||||
@ -78,7 +78,7 @@ class Form
|
|||||||
{
|
{
|
||||||
$this->missing[] = $field_id;
|
$this->missing[] = $field_id;
|
||||||
$this->data[$field_id] = '';
|
$this->data[$field_id] = '';
|
||||||
continue;
|
continue 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$this->data[$field_id] = $post[$field_id];
|
$this->data[$field_id] = $post[$field_id];
|
||||||
|
Loading…
Reference in New Issue
Block a user