Merge pull request #1 from yinsongbj/yinsongbj-patch-1
move is_string() to the front of is_numeric()
This commit is contained in:
commit
71adaa29dd
@ -90,7 +90,7 @@ class Utils
|
||||
if (is_string($value)) {
|
||||
$value = self::stripZero($value);
|
||||
$hex = implode('', unpack('H*', $value));
|
||||
} esleif (is_numeric($value)) {
|
||||
} elseif (is_numeric($value)) {
|
||||
// turn to hex number
|
||||
$bn = self::toBn($value);
|
||||
$hex = $bn->toHex(true);
|
||||
|
Loading…
Reference in New Issue
Block a user