summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-02-09 16:43:57 +0100
committerYorhel <git@yorhel.nl>2019-02-09 16:43:57 +0100
commitf5e442d68dc529187407ba7d1f7a662f3fa76508 (patch)
tree905c7cbf217e3345e384516ed6880e227b103644
parenta09cba9fd7383244bdf05c47e5fc09bc8868935f (diff)
Fix TUWF::Misc::validate() in multiple value mode
-rw-r--r--lib/TUWF/Misc.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TUWF/Misc.pm b/lib/TUWF/Misc.pm
index dc26e88..c3714d7 100644
--- a/lib/TUWF/Misc.pm
+++ b/lib/TUWF/Misc.pm
@@ -228,7 +228,7 @@ sub TUWF::Object::validate {
return _compile($_[1])->validate($source->{$_[0]}) if @_ == 2;
# Multi-value, separate params
- _comile({ @_ })->validate($source);
+ _compile({ type => 'hash', keys => { @_ } })->validate($source);
}
1;