Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
78af4569
Commit
78af4569
authored
Apr 04, 2013
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1855 from rittme/patch-1
get_dirty() comparison is not type safe
parents
5dd3ec6f
d46e1921
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
laravel/database/eloquent/model.php
+2
-3
No files found.
laravel/database/eloquent/model.php
View file @
78af4569
...
...
@@ -517,7 +517,7 @@ abstract class Model {
foreach
(
$this
->
attributes
as
$key
=>
$value
)
{
if
(
!
array_key_exists
(
$key
,
$this
->
original
)
or
$value
!=
$this
->
original
[
$key
])
if
(
!
array_key_exists
(
$key
,
$this
->
original
)
or
$value
!=
=
$this
->
original
[
$key
])
{
$dirty
[
$key
]
=
$value
;
}
...
...
@@ -795,4 +795,4 @@ abstract class Model {
return
call_user_func_array
(
array
(
new
$model
,
$method
),
$parameters
);
}
}
\ No newline at end of file
}
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