mirror of
https://github.com/clitor-is-protocol/kevacoin-php.git
synced 2025-03-13 05:51:37 +00:00
fix pieces validation
This commit is contained in:
parent
17c7dbd014
commit
d0f18f2956
@ -41,7 +41,7 @@ class Reader
|
||||
(!
|
||||
(
|
||||
isset($meta['pieces']) && is_array($meta['pieces']) &&
|
||||
isset($meta['pieces']['total']) && is_int($meta['pieces']['total']) && $meta['pieces']['total'] > 1 &&
|
||||
isset($meta['pieces']['total']) && is_int($meta['pieces']['total']) && $meta['pieces']['total'] > 0 &&
|
||||
isset($meta['pieces']['size']) && is_int($meta['pieces']['size']) && $meta['pieces']['size'] >= 1
|
||||
&& $meta['pieces']['size'] <= 3072
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user