From b2200b79caf545139d132b8b6cb3706847337ad7 Mon Sep 17 00:00:00 2001
From: Dries <dries@buytaert.net>
Date: Sat, 10 Mar 2012 08:09:30 -0500
Subject: [PATCH] - Patch #1476776 by droplet: drupal_var_export() is a
 concatination to undefined variable .

---
 core/includes/utility.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/includes/utility.inc b/core/includes/utility.inc
index 7d82f3292e90..d44e4dde8756 100644
--- a/core/includes/utility.inc
+++ b/core/includes/utility.inc
@@ -51,7 +51,7 @@ function drupal_var_export($var, $prefix = '') {
     // magic method __set_state() leaving the export broken. This
     // workaround avoids this by casting the object as an array for
     // export and casting it back to an object when evaluated.
-    $output .= '(object) ' . drupal_var_export((array) $var, $prefix);
+    $output = '(object) ' . drupal_var_export((array) $var, $prefix);
   }
   else {
     $output = var_export($var, TRUE);
-- 
GitLab