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()) {
}
else {
$query = db_update($table)->fields($fields);
foreach ($primary_keys as $key){
foreach ($primary_keys as $key) {
$query->condition($key, $object->$key);
}
$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