fixed required check
This commit is contained in:
parent
077f81be49
commit
f4ce9c1299
|
@ -692,7 +692,7 @@ abstract class baseModule {
|
||||||
$identifiers = array_keys($this->meta['config_checks'][$scopes[$s]]);
|
$identifiers = array_keys($this->meta['config_checks'][$scopes[$s]]);
|
||||||
for ($i = 0; $i < sizeof($identifiers); $i++) {
|
for ($i = 0; $i < sizeof($identifiers); $i++) {
|
||||||
// check if option is required
|
// check if option is required
|
||||||
if (isset($this->meta['config_checks'][$scopes[$s]][$identifiers[$i]]['required']) && ($options[$identifiers[$i]][0] == '')) {
|
if (isset($this->meta['config_checks'][$scopes[$s]][$identifiers[$i]]['required']) && ($this->meta['config_checks'][$scopes[$s]][$identifiers[$i]]['required']) && ($options[$identifiers[$i]][0] == '')) {
|
||||||
$messages[] = $this->meta['config_checks'][$scopes[$s]][$identifiers[$i]]['required_message'];
|
$messages[] = $this->meta['config_checks'][$scopes[$s]][$identifiers[$i]]['required_message'];
|
||||||
}
|
}
|
||||||
switch ($this->meta['config_checks'][$scopes[$s]][$identifiers[$i]]['type']) {
|
switch ($this->meta['config_checks'][$scopes[$s]][$identifiers[$i]]['type']) {
|
||||||
|
|
Loading…
Reference in New Issue