Merge pull request #329 from saz/patch-2

Fix validation of events_use parameter
This commit is contained in:
James Fryman 2014-06-04 22:57:06 +02:00
commit c287616543

View file

@ -89,7 +89,9 @@ class nginx (
if (!is_integer($worker_rlimit_nofile)) {
fail('$worker_rlimit_nofile must be an integer.')
}
validate_string($events_use)
if (!is_string($events_use)) and ($events_use != false) {
fail('$events_use must be a string or false.')
}
validate_string($multi_accept)
validate_string($package_name)
validate_string($package_ensure)