From 5af292f76b27ffa7d6d571ddf6b663ebf0a92252 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 21 May 2010 20:19:48 +0000 Subject: - Patch #767512 by jhedstrom, Damien Tournoud: fixed error. --- includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index dd032cb4c..8fc1e0754 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -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; } } -- cgit v1.2.3