Починка английской Гиперкниги
This commit is contained in:
parent
1798ef09e5
commit
058f103812
|
@ -29,10 +29,13 @@ class HyperbookEn extends Source {
|
|||
}
|
||||
$i = 0;
|
||||
foreach ($container->find("div.small") as $small) {
|
||||
if($small->getAttribute('style') === 'float: left; width: 20%; text-align:right;') {
|
||||
if(
|
||||
$small->getAttribute('style') === 'float: left; width: 20%; text-align:right;' &&
|
||||
is_null($games[$i]->date)
|
||||
) {
|
||||
$games[$i]->date = $small->innerHtml;
|
||||
}
|
||||
if($small->getAttribute('class') === FALSE) {
|
||||
elseif ($small->getAttribute('style') === NULL) {
|
||||
$games[$i]->description = $small->innerHtml;
|
||||
$i++;
|
||||
}
|
||||
|
|
Reference in a new issue