mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Revert change
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user