[XenForoBridge] Fix broken conditions
Restore functionality for https://xenforo.com/community/
This commit is contained in:
parent
9c1c0f2974
commit
b9f6bc8197
1 changed files with 2 additions and 2 deletions
|
@ -290,7 +290,7 @@ class XenForoBridge extends BridgeAbstract {
|
||||||
|
|
||||||
// A navigation bar becomes available if the number of posts grows too
|
// 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)
|
// 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'};
|
$lastpage = $pageNav->{'data-last'};
|
||||||
$baseurl = $pageNav->{'data-baseurl'};
|
$baseurl = $pageNav->{'data-baseurl'};
|
||||||
|
@ -333,7 +333,7 @@ class XenForoBridge extends BridgeAbstract {
|
||||||
|
|
||||||
// A navigation bar becomes available if the number of posts grows too
|
// 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)
|
// 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) {
|
foreach($pageNav->find('li') as $nav) {
|
||||||
$lastpage = $nav->plaintext;
|
$lastpage = $nav->plaintext;
|
||||||
|
|
Loading…
Reference in a new issue