Permalink
Browse files

Fix warning on counting NULL in PHP 7.2 (#1341)

  • Loading branch information...
emodric authored and andrerom committed Jan 12, 2018
1 parent c23625a commit 0fa5986a1ae0e85e8872ea2861459b8e6a9d10b9
Showing with 1 addition and 1 deletion.
  1. +1 −1 kernel/classes/ezscript.php
@@ -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'] ) );
}

0 comments on commit 0fa5986

Please sign in to comment.