Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
73d8e2f2
Commit
73d8e2f2
authored
Jun 17, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed arr::get argument order.
parent
d802ae83
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
arr.php
system/arr.php
+3
-3
input.php
system/input.php
+2
-2
No files found.
system/arr.php
View file @
73d8e2f2
...
@@ -5,12 +5,12 @@ class Arr {
...
@@ -5,12 +5,12 @@ class Arr {
/**
/**
* Get an item from an array.
* Get an item from an array.
*
*
* @param string $key
* @param string $default
* @param array $array
* @param array $array
* @param string $key
* @param array $default
* @return mixed
* @return mixed
*/
*/
public
static
function
get
(
$
key
,
$default
=
null
,
$array
=
array
()
)
public
static
function
get
(
$
array
,
$key
,
$default
=
null
)
{
{
if
(
is_null
(
$key
))
if
(
is_null
(
$key
))
{
{
...
...
system/input.php
View file @
73d8e2f2
...
@@ -41,7 +41,7 @@ class Input {
...
@@ -41,7 +41,7 @@ class Input {
static
::
hydrate
();
static
::
hydrate
();
}
}
return
Arr
::
get
(
$key
,
$default
,
static
::
$inpu
t
);
return
Arr
::
get
(
static
::
$input
,
$key
,
$defaul
t
);
}
}
/**
/**
...
@@ -77,7 +77,7 @@ class Input {
...
@@ -77,7 +77,7 @@ class Input {
throw
new
\Exception
(
"Sessions must be enabled to retrieve old input data."
);
throw
new
\Exception
(
"Sessions must be enabled to retrieve old input data."
);
}
}
return
Arr
::
get
(
$key
,
$default
,
Session
::
get
(
'laravel_old_input'
,
array
())
);
return
Arr
::
get
(
Session
::
get
(
'laravel_old_input'
,
array
()),
$key
,
$default
);
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment