CallValidator.

This commit is contained in:
sc0Vu 2018-01-03 15:18:45 +08:00
parent 80e686dec9
commit 8765657975

View File

@ -29,7 +29,7 @@ class CallValidator
if (!is_array($value)) {
return false;
}
if (isset($value['from']) && AddressValidator::validate($value['from']) === false) {
if (isset($value['from']) && AddressValidator::validate($value['from']) === false && $value['from'] !== '') {
return false;
}
if (!isset($value['to'])) {