Merge pull request #329 from saz/patch-2
Fix validation of events_use parameter
This commit is contained in:
commit
c287616543
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue