Commit 8a280389 authored by Dries's avatar Dries

- Patch #445266 by j.somers: tiny code clean-up.

parent f83776a0
...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment