Skip to content

Commit

Permalink
Fixed a code-bug when counting parts for RFC2231 reading
Browse files Browse the repository at this point in the history
Found by using PHP 7.2, which doesn't allow count() on booleans
anymore.
  • Loading branch information
derickr committed Nov 18, 2017
1 parent 065b5dc commit bfe9736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/rfc2231_implementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static function parseHeader( $header )
$result[1][$paramName]['language'] = $language;
}

if ( count( $parts > 1 ) )
if ( count( $parts ) > 1 )
{
for ( $i = 1; $i < count( $parts ); $i++ )
{
Expand Down

0 comments on commit bfe9736

Please sign in to comment.