[XenForoBridge] Fix broken conditions

Restore functionality for https://xenforo.com/community/
This commit is contained in:
logmanoriginal 2018-11-05 12:15:01 +01:00
parent 9c1c0f2974
commit b9f6bc8197

View file

@ -290,7 +290,7 @@ class XenForoBridge extends BridgeAbstract {
// A navigation bar becomes available if the number of posts grows too
// high. When this happens we need to load further pages (from last backwards)
if(($pageNav = $html->find('div.PageNav', 0)) !== false) {
if(($pageNav = $html->find('div.PageNav', 0))) {
$lastpage = $pageNav->{'data-last'};
$baseurl = $pageNav->{'data-baseurl'};
@ -333,7 +333,7 @@ class XenForoBridge extends BridgeAbstract {
// A navigation bar becomes available if the number of posts grows too
// high. When this happens we need to load further pages (from last backwards)
if(($pageNav = $html->find('div.pageNav', 0)) !== false) {
if(($pageNav = $html->find('div.pageNav', 0))) {
foreach($pageNav->find('li') as $nav) {
$lastpage = $nav->plaintext;