Hello;
On a fresh module install several PHP errors surfaced related to the count() function being passed a non-countable NULL value.
This won't prevent the module from working but will pollute the messages area with tons of warnings.
The attached patch solves this problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | count-warning-when-null-3127787-2.patch | 642 bytes | idiaz.roncero |
Comments
Comment #2
idiaz.ronceroComment #3
idiaz.ronceroComment #4
nattsThanks for spotting this. I'll put an alternative fix (that doesn't unnecessarily define a new variable) in the next release:
$quantity = is_array($service->get('hostnames')) ? count($service->get('hostnames')) : 1;