Skip to content

Commit

Permalink
Update BaseEnum.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy committed Jan 20, 2015
1 parent f622438 commit 3e3549c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/BaseEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public static function getLabel($value)
if (isset($list[$value])) {
return \Yii::t('enum', $list[$value]);
}
return false;
return null;
}

/**
Expand Down Expand Up @@ -254,4 +254,4 @@ public static function isValidValue($value)

return array_key_exists($value, $constants);
}
}
}

0 comments on commit 3e3549c

Please sign in to comment.