count(): Parameter must be an array or an object that implements Countable in Importer
Bug #1812910 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon | ||
18.04 |
Fix Released
|
High
|
Unassigned | ||
18.10 |
Fix Released
|
High
|
Unassigned | ||
19.04 |
Fix Released
|
High
|
Robert Lyon |
Bug Description
Importer needs to use is_array() instead of count() in PHP 7.2 when we are wanting to check if there is an array to loop over with foreach().
Currently we try to loop over entries by checking with count() and we get error
- count(): Parameter must be an array or an object that implements Countable
when there is nothing set
Changed in mahara: | |
importance: | Undecided → High |
milestone: | none → 19.04.0 |
assignee: | nobody → Robert Lyon (robertl-9) |
status: | New → In Progress |
To post a comment you must log in.
Patch for "master" branch: https:/ /reviews. mahara. org/9454