mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
b3f4d77e00
* count() doesn't work quite as expected when the record being written to the PDF is an object. So make sure to convert the record to an array. * In addition, instead of comparing the total vs the current cell counter, it would be more reliable to determine whether we're at the last element of the array by getting the key for the last element and comparing it with the key for the element that's currently being processed.