Commit 2dcb24c5 authored by Ad Schellevis's avatar Ad Schellevis

typo

parent 2d802776
......@@ -60,7 +60,7 @@ class NetworkField extends BaseField
/**
* @var bool wildcard (any) enabled
*/
protected $internalWilcardEnabled = true;
protected $internalWildcardEnabled = true;
/**
* always lowercase / trim networks
......@@ -100,9 +100,9 @@ class NetworkField extends BaseField
public function setWildcardEnabled($value)
{
if (trim(strtoupper($value)) == "Y") {
$this->internalWilcardEnabled = true;
$this->internalWildcardEnabled = true;
} else {
$this->internalWilcardEnabled = false;
$this->internalWildcardEnabled = false;
}
}
......@@ -114,7 +114,7 @@ class NetworkField extends BaseField
{
$validators = parent::getValidators();
if ($this->internalValue != null) {
if ($this->internalValue != "any" || $this->internalWilcardEnabled == false) {
if ($this->internalValue != "any" || $this->internalWildcardEnabled == false) {
// accept any as target
$validators[] = new NetworkValidator(array(
'message' => $this->internalValidationMessage,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment