Revert change

This commit is contained in:
Romain Neutron
2013-06-11 16:00:24 +02:00
parent f1a53d2b68
commit d4e9d6203c

View File

@@ -489,7 +489,7 @@ class databox_field implements cache_cacheableInterface
*/
public function get_label($code)
{
if (null !== $code && !array_key_exists($code, $this->labels)) {
if (!array_key_exists($code, $this->labels)) {
throw new InvalidArgumentException(sprintf('Code %s is not defined', $code));
}