Skip to content

Instantly share code, notes, and snippets.

@crishoj
Created January 29, 2010 09:49
Show Gist options
  • Save crishoj/289603 to your computer and use it in GitHub Desktop.
Save crishoj/289603 to your computer and use it in GitHub Desktop.
Index: error/Hoptoad.php
===================================================================
--- error/Hoptoad.php (revision 2525)
+++ error/Hoptoad.php (working copy)
@@ -245,6 +245,8 @@
$node = $parent->addChild($key);
foreach ($source as $key => $val) {
+ if (is_array($val))
+ $val = str_replace("\n", ' ', print_r($val, true));
$var_node = $node->addChild('var', $val);
$var_node->addAttribute('key', $key);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment