- Patch #767512 by jhedstrom, Damien Tournoud: fixed error.
parent
f10d728125
commit
5af292f76b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue