Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
302
Merge Requests
302
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
8a280389
Commit
8a280389
authored
Apr 26, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#445266
by j.somers: tiny code clean-up.
parent
f83776a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
includes/common.inc
includes/common.inc
+1
-1
No files found.
includes/common.inc
View file @
8a280389
...
@@ -4035,7 +4035,7 @@ function drupal_write_record($table, &$object, $primary_keys = array()) {
...
@@ -4035,7 +4035,7 @@ function drupal_write_record($table, &$object, $primary_keys = array()) {
}
}
else
{
else
{
$query
=
db_update
(
$table
)
->
fields
(
$fields
);
$query
=
db_update
(
$table
)
->
fields
(
$fields
);
foreach
(
$primary_keys
as
$key
){
foreach
(
$primary_keys
as
$key
)
{
$query
->
condition
(
$key
,
$object
->
$key
);
$query
->
condition
(
$key
,
$object
->
$key
);
}
}
$return
=
SAVED_UPDATED
;
$return
=
SAVED_UPDATED
;
...
...
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