From f6619de5046ee08b2609a730c10b1237bf5c2b1d Mon Sep 17 00:00:00 2001 From: Peter Philipp Date: Fri, 29 Jul 2011 23:47:10 +0200 Subject: [PATCH] Fix for "Undefined variable $ouput" in ctools_var_export() --- includes/export.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/includes/export.inc b/includes/export.inc index 66aa3b6..bb68814 100644 --- a/includes/export.inc +++ b/includes/export.inc @@ -834,7 +834,7 @@ function ctools_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) ' . ctools_var_export((array) $var, $prefix); + $output = '(object) ' . ctools_var_export((array) $var, $prefix); } else if (is_bool($var)) { $output = $var ? 'TRUE' : 'FALSE'; -- 1.7.3.1.msysgit.0