Commit b2200b79 authored by Dries's avatar Dries

- Patch #1476776 by droplet: drupal_var_export() is a concatination to undefined variable .

parent 130ccc56
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment