mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-21 22:17:41 +01:00
BUGFIX: fixed undefined offset
This commit is contained in:
parent
ce53df5328
commit
df71cc208d
@ -16,7 +16,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1",
|
"php": "^7.1 || ^8.0",
|
||||||
"myclabs/php-enum": "^1.7",
|
"myclabs/php-enum": "^1.7",
|
||||||
"ext-iconv": "*"
|
"ext-iconv": "*"
|
||||||
},
|
},
|
||||||
|
@ -461,8 +461,8 @@ class Pairtwo6 implements ReaderInterface
|
|||||||
$offset += $length;
|
$offset += $length;
|
||||||
|
|
||||||
$length = 1;
|
$length = 1;
|
||||||
$player->Category =
|
$categoryindex = $this->readData('Int', substr($swscontents, $offset, $length));
|
||||||
$this->Tournament->Categories[ $this->readData('Int', substr($swscontents, $offset, $length)) - 1 ];
|
$player->Category = $categoryindex != 0 ? $this->Tournament->Categories[ $categoryindex ] : NULL;
|
||||||
$offset += $length;
|
$offset += $length;
|
||||||
|
|
||||||
$length = 1;
|
$length = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user