Changed conditional to work with default value as null

This commit is contained in:
drgomesp 2013-02-14 14:16:54 -02:00
parent 1f6b7b4788
commit b4792d1cd5

View File

@ -127,7 +127,7 @@ abstract class AbstractFormatter implements FormatterInterface
{
$array = array();
foreach ($collection as $coll) {
if('none' === $coll['annotation']->getSection()) {
if(is_null($coll['annotation']->getSection())) {
$array[$coll['resource']][] = $coll['annotation']->toArray();
} else {
$array[$coll['annotation']->getSection()][] = $coll['annotation']->toArray();