Skip to content

Commit

Permalink
Fix warning on counting NULL in PHP 7.2 (#1341)
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric authored and andrerom committed Jan 12, 2018
1 parent c23625a commit 0fa5986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/classes/ezscript.php
Expand Up @@ -1072,7 +1072,7 @@ function getOptions( $config = '', $argumentConfig = '', $optionHelp = false,
$this->setUseIncludeFiles( $useIncludeFiles );
$this->setDebugMessage( "\n\n" . str_repeat( '#', 36 ) . $cli->style( 'emphasize' ) . " DEBUG " . $cli->style( 'emphasize-end' ) . str_repeat( '#', 36 ) . "\n" );
}
if ( count( $options['verbose'] ) > 0 )
if ( is_array( $options['verbose'] ) && count( $options['verbose'] ) > 0 )
{
$this->setShowVerboseOutput( count( $options['verbose'] ) );
}
Expand Down

0 comments on commit 0fa5986

Please sign in to comment.