From 3e3549c24eb74bab48a85acdf5f00ea80ddfcadb Mon Sep 17 00:00:00 2001 From: Igor Chepurnoy Date: Tue, 20 Jan 2015 11:38:09 +0200 Subject: [PATCH] Update BaseEnum.php --- helpers/BaseEnum.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/BaseEnum.php b/helpers/BaseEnum.php index ecd741f..87b6205 100755 --- a/helpers/BaseEnum.php +++ b/helpers/BaseEnum.php @@ -142,7 +142,7 @@ public static function getLabel($value) if (isset($list[$value])) { return \Yii::t('enum', $list[$value]); } - return false; + return null; } /** @@ -254,4 +254,4 @@ public static function isValidValue($value) return array_key_exists($value, $constants); } -} \ No newline at end of file +}