Commit 5af292f7 authored by Dries's avatar Dries
Browse files

- Patch #767512 by jhedstrom, Damien Tournoud: fixed error.

parent f10d7281
......@@ -1192,7 +1192,7 @@ function bootstrap_hooks() {
function drupal_unpack($obj, $field = 'data') {
if ($obj->$field && $data = unserialize($obj->$field)) {
foreach ($data as $key => $value) {
if (!isset($obj->$key)) {
if (!empty($key) && !isset($obj->$key)) {
$obj->$key = $value;
}
}
......
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