bugfix - to short version - skipping comment moves
This commit is contained in:
@@ -202,6 +202,8 @@ class PgnParser
|
||||
private function toShortVersion($branch)
|
||||
{
|
||||
foreach ($branch as &$move) {
|
||||
|
||||
if (isset($move["from"])) {
|
||||
$move["n"] = $move["from"] . $move["to"];
|
||||
|
||||
#$move["n"] = $move["from"] . $move["to"];
|
||||
@@ -217,6 +219,8 @@ class PgnParser
|
||||
}
|
||||
unset($move["variations"]);
|
||||
}
|
||||
|
||||
}
|
||||
return $branch;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user