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 +}