--- contemplate.module 2008-10-14 08:52:21.000000000 -0700
+++ contemplate.fix 2008-11-08 13:28:53.000000000 -0800
@@ -689,10 +689,10 @@
$output .= "
\n";
if (is_array($value)) {
- $output .= contemplate_array_variables($value, $target, $field, FALSE, $depth++, $recursion_limit_hit);
+ $output .= contemplate_array_variables($value, $target, $field, FALSE, $depth+1, $recursion_limit_hit);
}
elseif (is_object($value)) {
- $output .= contemplate_array_variables((array)$value, $target, $field, TRUE, $depth++, $recursion_limit_hit);
+ $output .= contemplate_array_variables((array)$value, $target, $field, TRUE, $depth+1, $recursion_limit_hit);
}
else {
$value = is_bool($value) ? ($value ? 'TRUE' : 'FALSE') : $value;