Skip to content

Commit

Permalink
Fix: Call count function on non countable variable
Browse files Browse the repository at this point in the history
Fixes #1410
  • Loading branch information
andrerom committed Feb 21, 2019
1 parent 8e58bc6 commit 215ce2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/classes/ezpolicylimitation.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function allValuesAsArrayWithNames()

if ( $limitation &&
isset( $limitation['class'] ) &&
count( $limitation[ 'values' ] == 0 ) )
count( $limitation[ 'values' ] ) == 0 )
{
$obj = new $limitation['class']( array() );
$limitationValueList = call_user_func_array ( array( $obj , $limitation['function']) , $limitation['parameter'] );
Expand Down

0 comments on commit 215ce2c

Please sign in to comment.