Archived
1
0
Fork 0

Починка английской Гиперкниги

This commit is contained in:
Alexander Yakovlev 2017-10-26 18:28:39 +07:00
parent 1798ef09e5
commit 058f103812

View file

@ -29,10 +29,13 @@ class HyperbookEn extends Source {
} }
$i = 0; $i = 0;
foreach ($container->find("div.small") as $small) { 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; $games[$i]->date = $small->innerHtml;
} }
if($small->getAttribute('class') === FALSE) { elseif ($small->getAttribute('style') === NULL) {
$games[$i]->description = $small->innerHtml; $games[$i]->description = $small->innerHtml;
$i++; $i++;
} }