Fixing typo, those happen when you are in a coma

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4497 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-02-10 08:17:39 +00:00
parent 0fc79cdf6a
commit d8a8cbfb92

View file

@ -77,7 +77,7 @@ class Object{
/**
* Return a value from an array list if the key exists.
*
* If a coma separated $list is passed arrays are numeric with the key of the first being 0
* If a comma separated $list is passed arrays are numeric with the key of the first being 0
* $list = 'no, yes' would translate to $list = array(0 => 'no', 1 => 'yes');
*
* If an array is used, keys can be strings example: array('no' => 0, 'yes' => 1);
@ -85,7 +85,7 @@ class Object{
* $list defaults to 0 = no 1 = yes if param is not passed
*
* @param string $selected
* @param mixed $list can be an array or a coma separated list.
* @param mixed $list can be an array or a comma separated list.
* @return string the value of the array key or null if no match
*/
function enum($select, $list = array('no', 'yes')) {