Skip to content

Commit

Permalink
Allow real integer values in plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Jul 24, 2018
1 parent 1b9b882 commit 94eb5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mshoplib/src/MShop/Plugin/Provider/Base.php
Expand Up @@ -111,7 +111,7 @@ protected function checkConfig( array $config, array $attributes )
}
break;
case 'integer':
if( ctype_digit( $attributes[$key] ) === false ) {
if( is_integer( $attributes[$key] ) === false && ctype_digit( $attributes[$key] ) === false ) {
$errors[$key] = sprintf( 'Not an integer number' ); continue 2;
}
break;
Expand Down

0 comments on commit 94eb5fa

Please sign in to comment.