Skip to content

Commit d5a8d2c

Browse files
authored
Merge pull request #42 from jasverix/patch-2
Fix for php 7.2
2 parents 1de01f8 + d5a10d3 commit d5a8d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class.krumo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ private static function _object(&$data, $name)
12901290
}
12911291

12921292
print "<li class=\"krumo-child\"> <div class=\"krumo-element $elementClasses\"";
1293-
if (count($data) > 0) {
1293+
if ($data && count($data) > 0) {
12941294
print 'onClick="krumo.toggle(this);"';
12951295
}
12961296
print 'onMouseOver="krumo.over(this);" onMouseOut="krumo.out(this);">';

0 commit comments

Comments
 (0)