Skip to content
Snippets Groups Projects
Commit b2200b79 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 130ccc56
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment