From 1798ef09e5268c1c04ba4689ea1e0be3d0ecfe31 Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Thu, 26 Oct 2017 18:28:06 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=87=D0=B8=D0=BD=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=93=D0=B8=D0=BF=D0=B5=D1=80=D0=BA=D0=BD=D0=B8=D0=B3=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Hyperbook.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Hyperbook.php b/Source/Hyperbook.php index 72df996..c014e46 100644 --- a/Source/Hyperbook.php +++ b/Source/Hyperbook.php @@ -42,10 +42,13 @@ class Hyperbook 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++; }