mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
0fc79cdf6a
commit
d8a8cbfb92
1 changed files with 2 additions and 2 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Add table
Reference in a new issue