Merge branch 'w24_MDL-33553_m23_portfoliostrict' of git://github.com/skodak/moodle

This commit is contained in:
Dan Poltawski 2012-06-13 16:22:27 +08:00
commit 966f3a11e1

View File

@ -150,7 +150,8 @@ class data_portfolio_caller extends portfolio_module_caller_base {
foreach ($this->records as $record) {
foreach ($record as $data) {
if (is_array($data) || is_object($data)) {
$testkey = array_pop(array_keys($data));
$keys = array_keys($data);
$testkey = array_pop($keys);
if (is_array($data[$testkey]) || is_object($data[$testkey])) {
foreach ($data as $d) {
$str .= implode(',', (array)$d);