diff --git a/Source/HyperbookEn.php b/Source/HyperbookEn.php index 1228737..ac9d1cc 100644 --- a/Source/HyperbookEn.php +++ b/Source/HyperbookEn.php @@ -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++; }