From b4792d1cd5bb4d88374d42304d8ba8960dac245d Mon Sep 17 00:00:00 2001 From: drgomesp Date: Thu, 14 Feb 2013 14:16:54 -0200 Subject: [PATCH] Changed conditional to work with default value as null --- Formatter/AbstractFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formatter/AbstractFormatter.php b/Formatter/AbstractFormatter.php index 978c719..17a421d 100644 --- a/Formatter/AbstractFormatter.php +++ b/Formatter/AbstractFormatter.php @@ -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();