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

merge-requests/26/head
Dries Buytaert 2010-05-21 20:19:48 +00:00
parent f10d728125
commit 5af292f76b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}