Skip to content
Snippets Groups Projects
Commit 86494f74 authored by alangrafu's avatar alangrafu
Browse files

Merge branch 'hotfixes'

parents eaa48e90 18d377ad
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ class Haanga_Extension_Filter_Length
{
$count = hexec('count', $args[0]);
$strlen = hexec('strlen', $args[0]);
$props = hexec('count', hexec('array_keys', hexec('get_object_vars', $args[0])));
$guess = hexpr_cond(hexec('is_array', $args[0]), hexec('count', $args[0]),
hexec('strlen', $args[0]));
......@@ -19,7 +20,7 @@ class Haanga_Extension_Filter_Length
} else if (is_string($value)) {
return $strlen;
} else if (is_object($value)) {
return count(array_keys($value));
return $props;
} else {
return $guess;
}
......
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