Index: context.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/context/context.module,v
retrieving revision 1.6.2.6.2.6
diff -u -p -r1.6.2.6.2.6 context.module
--- context.module	24 Jul 2009 01:27:05 -0000	1.6.2.6.2.6
+++ context.module	10 Apr 2010 01:26:55 -0000
@@ -640,6 +640,9 @@ function context_empty($element) {
  * Export a variable.
  */
 function context_var_export($var, $prefix = '', $multiple = TRUE) {
+  if (is_object($var)) {
+    $var = (array)$var;
+  }
   if (is_array($var)) {
     if (empty($var)) {
       $output = 'array()';
