summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/bootstrap.inc2
1 files changed, 1 insertions, 1 deletions
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;
}
}