Fixed ticket 40 View Projects: implode functions seems not support ArrayObject

Forced the arrayObject as array with casting.
This commit is contained in:
Loic d'Anterroches 2008-09-12 16:23:43 +02:00
parent 8ae2ae2b06
commit cecae05bda

View File

@ -254,8 +254,8 @@ class IDF_Project extends Pluf_Model
if ($fmt == 'objects') { if ($fmt == 'objects') {
return new Pluf_Template_ContextVars(array('members' => $members, 'owners' => $owners)); return new Pluf_Template_ContextVars(array('members' => $members, 'owners' => $owners));
} else { } else {
return array('members' => implode("\n", $members), return array('members' => implode("\n", (array) $members),
'owners' => implode("\n", $owners)); 'owners' => implode("\n", (array) $owners));
} }
} }